Skip to content

Commit

Permalink
Fix blacklist
Browse files Browse the repository at this point in the history
Reviewed By: @amasad

Differential Revision: D2432196
  • Loading branch information
Martin Konicek authored and facebook-github-bot-2 committed Sep 12, 2015
1 parent 56f77ec commit f1cf322
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packager/blacklist.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -45,6 +50,7 @@ function blacklist(platform, additionalBlacklist) {
(additionalBlacklist || []).concat(sharedBlacklist)
.concat(platformBlacklists[platform] || [])
.map(escapeRegExp)
.concat(sharedBlacklistWildcards)
.join('|') +
')$'
);
Expand Down

0 comments on commit f1cf322

Please sign in to comment.