Expose the asyncRequireModulePath param

Reviewed By: mjesun

Differential Revision: D7709569

fbshipit-source-id: 871dd9c178b1e5c81163558201ef983315561211
This commit is contained in:
Rafael Oleza 2018-04-20 14:03:33 -07:00 committed by Facebook Github Bot
parent 931930ae63
commit 06ec0f0fd1
2 changed files with 2 additions and 0 deletions

View File

@ -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(),

View File

@ -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(),