diff --git a/local-cli/bundle/buildBundle.js b/local-cli/bundle/buildBundle.js index 10130e5a8c5f21..31d81ee075c2e7 100644 --- a/local-cli/bundle/buildBundle.js +++ b/local-cli/bundle/buildBundle.js @@ -24,7 +24,7 @@ function buildBundle(args, config, output = outputBundle) { const options = { projectRoots: config.getProjectRoots(), assetRoots: config.getAssetRoots(), - blacklistRE: config.getBlacklistRE(), + blacklistRE: config.getBlacklistRE(args.platform), getTransformOptionsModulePath: config.getTransformOptionsModulePath, transformModulePath: args.transformer, verbose: args.verbose, diff --git a/packager/rn-cli.config.js b/packager/rn-cli.config.js index f0f856802ee692..c278051e8af6dc 100644 --- a/packager/rn-cli.config.js +++ b/packager/rn-cli.config.js @@ -17,8 +17,8 @@ module.exports = { return this._getRoots(); }, - getBlacklistRE() { - return blacklist(''); + getBlacklistRE(platform) { + return blacklist(platform); }, _getRoots() {