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 коммит произвёл Facebook Github Bot
Родитель 931930ae63
Коммит 06ec0f0fd1
2 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

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

Просмотреть файл

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