From dabe8e0d019e03611bc937a63a456d8ce9a2ebd0 Mon Sep 17 00:00:00 2001 From: Miguel Jimenez Esun Date: Mon, 26 Feb 2018 03:21:11 -0800 Subject: [PATCH] Allow passing custom configs through the CLI ("js1 run") Reviewed By: jeanlauliac Differential Revision: D7081913 fbshipit-source-id: f5952599c840f2c65213bd2928b21f0c1d84f510 --- local-cli/bundle/buildBundle.js | 1 + local-cli/server/runServer.js | 1 + 2 files changed, 2 insertions(+) diff --git a/local-cli/bundle/buildBundle.js b/local-cli/bundle/buildBundle.js index 36081a605..10d1ecc6b 100644 --- a/local-cli/bundle/buildBundle.js +++ b/local-cli/bundle/buildBundle.js @@ -82,6 +82,7 @@ async function buildBundle( assetExts: defaultAssetExts.concat(assetExts), assetRegistryPath: ASSET_REGISTRY_PATH, blacklistRE: config.getBlacklistRE(), + cacheStores: config.cacheStores, cacheVersion: config.cacheVersion, dynamicDepsInPackages: config.dynamicDepsInPackages, enableBabelRCLookup: config.getEnableBabelRCLookup(), diff --git a/local-cli/server/runServer.js b/local-cli/server/runServer.js index 8054190e1..371f43a39 100644 --- a/local-cli/server/runServer.js +++ b/local-cli/server/runServer.js @@ -168,6 +168,7 @@ function getPackagerServer(args, config, reporter) { assetExts: defaultAssetExts.concat(args.assetExts), assetRegistryPath: ASSET_REGISTRY_PATH, blacklistRE: config.getBlacklistRE(), + cacheStores: config.cacheStores, cacheVersion: '3', enableBabelRCLookup: config.getEnableBabelRCLookup(), extraNodeModules: config.extraNodeModules,