Expose getResolverMainFields() config param
Reviewed By: mjesun Differential Revision: D8380198 fbshipit-source-id: 3d5b7a5873095db2b90a23b5054fb94579df3f1a
This commit is contained in:
parent
e3c5524bc6
commit
39d9d71adb
|
@ -88,6 +88,7 @@ async function buildBundle(
|
||||||
extraNodeModules: config.extraNodeModules,
|
extraNodeModules: config.extraNodeModules,
|
||||||
getModulesRunBeforeMainModule: config.getModulesRunBeforeMainModule,
|
getModulesRunBeforeMainModule: config.getModulesRunBeforeMainModule,
|
||||||
getPolyfills: config.getPolyfills,
|
getPolyfills: config.getPolyfills,
|
||||||
|
getResolverMainFields: config.getResolverMainFields,
|
||||||
getRunModuleStatement: config.getRunModuleStatement,
|
getRunModuleStatement: config.getRunModuleStatement,
|
||||||
getTransformOptions: config.getTransformOptions,
|
getTransformOptions: config.getTransformOptions,
|
||||||
hasteImplModulePath: config.hasteImplModulePath,
|
hasteImplModulePath: config.hasteImplModulePath,
|
||||||
|
|
|
@ -187,6 +187,7 @@ function getPackagerServer(args, config, reporter) {
|
||||||
dynamicDepsInPackages: config.dynamicDepsInPackages,
|
dynamicDepsInPackages: config.dynamicDepsInPackages,
|
||||||
getModulesRunBeforeMainModule: config.getModulesRunBeforeMainModule,
|
getModulesRunBeforeMainModule: config.getModulesRunBeforeMainModule,
|
||||||
getPolyfills: config.getPolyfills,
|
getPolyfills: config.getPolyfills,
|
||||||
|
getResolverMainFields: config.getResolverMainFields,
|
||||||
getRunModuleStatement: config.getRunModuleStatement,
|
getRunModuleStatement: config.getRunModuleStatement,
|
||||||
getTransformOptions: config.getTransformOptions,
|
getTransformOptions: config.getTransformOptions,
|
||||||
hasteImplModulePath: config.hasteImplModulePath,
|
hasteImplModulePath: config.hasteImplModulePath,
|
||||||
|
|
|
@ -73,11 +73,12 @@ const Config = {
|
||||||
DEFAULT: ({
|
DEFAULT: ({
|
||||||
...MetroConfig.DEFAULT,
|
...MetroConfig.DEFAULT,
|
||||||
getBlacklistRE,
|
getBlacklistRE,
|
||||||
getProjectRoots,
|
|
||||||
getPolyfills,
|
|
||||||
getModulesRunBeforeMainModule: () => [
|
getModulesRunBeforeMainModule: () => [
|
||||||
require.resolve('../../Libraries/Core/InitializeCore'),
|
require.resolve('../../Libraries/Core/InitializeCore'),
|
||||||
],
|
],
|
||||||
|
getProjectRoots,
|
||||||
|
getPolyfills,
|
||||||
|
getResolverMainFields: () => ['react-native', 'browser', 'main'],
|
||||||
getTransformModulePath: () =>
|
getTransformModulePath: () =>
|
||||||
require.resolve('metro/src/reactNativeTransformer'),
|
require.resolve('metro/src/reactNativeTransformer'),
|
||||||
}: ConfigT),
|
}: ConfigT),
|
||||||
|
|
Loading…
Reference in New Issue