mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-28 20:25:33 +08:00
Allow passing custom configs through the CLI ("js1 run")
Reviewed By: jeanlauliac Differential Revision: D7081913 fbshipit-source-id: f5952599c840f2c65213bd2928b21f0c1d84f510
This commit is contained in:
committed by
Facebook Github Bot
parent
80c18395e2
commit
dabe8e0d01
@@ -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(),
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user