diff --git a/local-cli/bundle/buildBundle.js b/local-cli/bundle/buildBundle.js index 99c45ddc08d..c5d23148052 100644 --- a/local-cli/bundle/buildBundle.js +++ b/local-cli/bundle/buildBundle.js @@ -78,6 +78,7 @@ async function buildBundle( const terminal = new Terminal(process.stdout); const server = new Server({ + asyncRequireModulePath: config.getAsyncRequireModulePath(), assetExts: defaultAssetExts.concat(assetExts), assetRegistryPath: ASSET_REGISTRY_PATH, blacklistRE: config.getBlacklistRE(), diff --git a/local-cli/server/runServer.js b/local-cli/server/runServer.js index 47c11535bdf..e9b5f3e35bb 100644 --- a/local-cli/server/runServer.js +++ b/local-cli/server/runServer.js @@ -176,6 +176,7 @@ function getPackagerServer(args, config, reporter) { args.providesModuleNodeModules || defaultProvidesModuleNodeModules; return Metro.createServer({ + asyncRequireModulePath: config.getAsyncRequireModulePath(), assetExts: defaultAssetExts.concat(args.assetExts), assetRegistryPath: ASSET_REGISTRY_PATH, blacklistRE: config.getBlacklistRE(),