From f1cf322c9e54a21c5d9ac41a9a842ef16c55e4b0 Mon Sep 17 00:00:00 2001 From: Martin Konicek Date: Fri, 11 Sep 2015 15:48:35 -0700 Subject: [PATCH] Fix blacklist Reviewed By: @amasad Differential Revision: D2432196 --- packager/blacklist.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/packager/blacklist.js b/packager/blacklist.js index b79f2899c..741b7c1ff 100644 --- a/packager/blacklist.js +++ b/packager/blacklist.js @@ -13,16 +13,21 @@ var path = require('path'); // Don't forget to everything listed here to `testConfig.json` // modulePathIgnorePatterns. var sharedBlacklist = [ - 'website', 'node_modules/react-tools/src/React.js', 'node_modules/react-tools/src/renderers/shared/event/EventPropagators.js', 'node_modules/react-tools/src/renderers/shared/event/eventPlugins/ResponderEventPlugin.js', 'node_modules/react-tools/src/shared/vendor/core/ExecutionEnvironment.js', ]; +// Raw unescaped patterns in case you need to use wildcards +var sharedBlacklistWildcards = [ + 'website\/node_modules\/.*', +]; + var platformBlacklists = { web: [ - '.ios.js' + '.ios.js', + '.android.js', ], ios: [ '.web.js', @@ -45,6 +50,7 @@ function blacklist(platform, additionalBlacklist) { (additionalBlacklist || []).concat(sharedBlacklist) .concat(platformBlacklists[platform] || []) .map(escapeRegExp) + .concat(sharedBlacklistWildcards) .join('|') + ')$' );