mirror of https://github.com/status-im/metro.git
Fix enableBabelRCLookup option in new CLI + global cache script
Reviewed By: BYK Differential Revision: D6977885 fbshipit-source-id: 50245e046c7639f9fb4022a9cc5974d50831524c
This commit is contained in:
parent
33e93dcde3
commit
afa3307659
|
@ -166,7 +166,7 @@ const DEFAULT = ({
|
|||
dynamicDepsInPackages: 'throwAtRuntime',
|
||||
getAssetExts: () => [],
|
||||
getBlacklistRE: () => blacklist(),
|
||||
getEnableBabelRCLookup: () => false,
|
||||
getEnableBabelRCLookup: () => true,
|
||||
getPlatforms: () => [],
|
||||
getPolyfillModuleNames: () => [],
|
||||
// We assume the default project path is two levels up from
|
||||
|
|
|
@ -125,6 +125,7 @@ async function runMetro({
|
|||
blacklistRE: normalizedConfig.getBlacklistRE(),
|
||||
createModuleIdFactory: normalizedConfig.createModuleIdFactory,
|
||||
dynamicDepsInPackages: normalizedConfig.dynamicDepsInPackages,
|
||||
enableBabelRCLookup: normalizedConfig.getEnableBabelRCLookup(),
|
||||
extraNodeModules: normalizedConfig.extraNodeModules,
|
||||
getPolyfills: normalizedConfig.getPolyfills,
|
||||
getModulesRunBeforeMainModule:
|
||||
|
|
|
@ -78,7 +78,7 @@ export type Options = {|
|
|||
cacheVersion?: string,
|
||||
createModuleIdFactory?: () => (path: string) => number,
|
||||
+dynamicDepsInPackages: DynamicRequiresBehavior,
|
||||
enableBabelRCLookup?: boolean,
|
||||
enableBabelRCLookup: boolean,
|
||||
extraNodeModules?: {},
|
||||
getPolyfills: ({platform: ?string}) => $ReadOnlyArray<string>,
|
||||
getTransformOptions?: GetTransformOptions,
|
||||
|
|
Loading…
Reference in New Issue