Avoid hardcoding platform on blacklist

Reviewed By: davidaurelio

Differential Revision: D3042906

fb-gh-sync-id: 4a424ef1012d75d06c830b284806aefd1556ff74
shipit-source-id: 4a424ef1012d75d06c830b284806aefd1556ff74
This commit is contained in:
Martín Bigio 2016-03-12 10:58:55 -08:00 committed by Facebook Github Bot 4
parent 2e9c888dcd
commit e82a7a8649
2 changed files with 3 additions and 3 deletions

View File

@ -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,

View File

@ -17,8 +17,8 @@ module.exports = {
return this._getRoots();
},
getBlacklistRE() {
return blacklist('');
getBlacklistRE(platform) {
return blacklist(platform);
},
_getRoots() {