Allow passing custom configs through the CLI ("js1 run")

Reviewed By: jeanlauliac

Differential Revision: D7081913

fbshipit-source-id: f5952599c840f2c65213bd2928b21f0c1d84f510
This commit is contained in:
Miguel Jimenez Esun 2018-02-26 03:21:11 -08:00 committed by Facebook Github Bot
parent 80c18395e2
commit dabe8e0d01
2 changed files with 2 additions and 0 deletions

View File

@ -82,6 +82,7 @@ async function buildBundle(
assetExts: defaultAssetExts.concat(assetExts), assetExts: defaultAssetExts.concat(assetExts),
assetRegistryPath: ASSET_REGISTRY_PATH, assetRegistryPath: ASSET_REGISTRY_PATH,
blacklistRE: config.getBlacklistRE(), blacklistRE: config.getBlacklistRE(),
cacheStores: config.cacheStores,
cacheVersion: config.cacheVersion, cacheVersion: config.cacheVersion,
dynamicDepsInPackages: config.dynamicDepsInPackages, dynamicDepsInPackages: config.dynamicDepsInPackages,
enableBabelRCLookup: config.getEnableBabelRCLookup(), enableBabelRCLookup: config.getEnableBabelRCLookup(),

View File

@ -168,6 +168,7 @@ function getPackagerServer(args, config, reporter) {
assetExts: defaultAssetExts.concat(args.assetExts), assetExts: defaultAssetExts.concat(args.assetExts),
assetRegistryPath: ASSET_REGISTRY_PATH, assetRegistryPath: ASSET_REGISTRY_PATH,
blacklistRE: config.getBlacklistRE(), blacklistRE: config.getBlacklistRE(),
cacheStores: config.cacheStores,
cacheVersion: '3', cacheVersion: '3',
enableBabelRCLookup: config.getEnableBabelRCLookup(), enableBabelRCLookup: config.getEnableBabelRCLookup(),
extraNodeModules: config.extraNodeModules, extraNodeModules: config.extraNodeModules,