Add getRunModuleStatement config param to configure the require() statements

Reviewed By: cpojer

Differential Revision: D7334078

fbshipit-source-id: c19340567c634e3173ee707e92389eaaa4e724e9
This commit is contained in:
Rafael Oleza 2018-03-20 06:53:49 -07:00 committed by Facebook Github Bot
parent 6f339b6fcb
commit 15f0a7b76c
2 changed files with 2 additions and 0 deletions

View File

@ -89,6 +89,7 @@ async function buildBundle(
extraNodeModules: config.extraNodeModules,
getModulesRunBeforeMainModule: config.getModulesRunBeforeMainModule,
getPolyfills: config.getPolyfills,
getRunModuleStatement: config.getRunModuleStatement,
getTransformOptions: config.getTransformOptions,
globalTransformCache: null,
hasteImplModulePath: config.hasteImplModulePath,

View File

@ -190,6 +190,7 @@ function getPackagerServer(args, config, reporter) {
dynamicDepsInPackages: config.dynamicDepsInPackages,
getModulesRunBeforeMainModule: config.getModulesRunBeforeMainModule,
getPolyfills: config.getPolyfills,
getRunModuleStatement: config.getRunModuleStatement,
getTransformOptions: config.getTransformOptions,
globalTransformCache: null,
hasteImplModulePath: config.hasteImplModulePath,