mirror of
https://github.com/status-im/react-native.git
synced 2025-01-27 01:40:08 +00:00
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:
parent
2e9c888dcd
commit
e82a7a8649
@ -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,
|
||||
|
@ -17,8 +17,8 @@ module.exports = {
|
||||
return this._getRoots();
|
||||
},
|
||||
|
||||
getBlacklistRE() {
|
||||
return blacklist('');
|
||||
getBlacklistRE(platform) {
|
||||
return blacklist(platform);
|
||||
},
|
||||
|
||||
_getRoots() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user