Skip to content

Commit

Permalink
Expose the asyncRequireModulePath param
Browse files Browse the repository at this point in the history
Reviewed By: mjesun

Differential Revision: D7709569

fbshipit-source-id: 871dd9c178b1e5c81163558201ef983315561211
  • Loading branch information
rafeca authored and facebook-github-bot committed Apr 20, 2018
1 parent 4fd4c29 commit 1394c64
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions bundle/buildBundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
1 change: 1 addition & 0 deletions server/runServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 1394c64

Please sign in to comment.