Skip to content
This repository has been archived by the owner on Feb 18, 2019. It is now read-only.

Commit

Permalink
Avoid hardcoding platform on blacklist
Browse files Browse the repository at this point in the history
Reviewed By: davidaurelio

Differential Revision: D3042906

fb-gh-sync-id: 4a424ef1012d75d06c830b284806aefd1556ff74
shipit-source-id: 4a424ef1012d75d06c830b284806aefd1556ff74
  • Loading branch information
martinbigio authored and Facebook Github Bot 4 committed Mar 12, 2016
1 parent 2e9c888 commit e82a7a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion local-cli/bundle/buildBundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions packager/rn-cli.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ module.exports = {
return this._getRoots();
},

getBlacklistRE() {
return blacklist('');
getBlacklistRE(platform) {
return blacklist(platform);
},

_getRoots() {
Expand Down

0 comments on commit e82a7a8

Please sign in to comment.