From e82a7a86494dad5fe77cb035060cbb361e5901d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Bigio?= Date: Sat, 12 Mar 2016 10:58:55 -0800 Subject: [PATCH] Avoid hardcoding platform on blacklist Reviewed By: davidaurelio Differential Revision: D3042906 fb-gh-sync-id: 4a424ef1012d75d06c830b284806aefd1556ff74 shipit-source-id: 4a424ef1012d75d06c830b284806aefd1556ff74 --- local-cli/bundle/buildBundle.js | 2 +- packager/rn-cli.config.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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() {