Fix enableBabelRCLookup option in new CLI + global cache script

Reviewed By: BYK

Differential Revision: D6977885

fbshipit-source-id: 50245e046c7639f9fb4022a9cc5974d50831524c
This commit is contained in:
Rafael Oleza 2018-02-14 08:42:28 -08:00 committed by Facebook Github Bot
parent 33e93dcde3
commit afa3307659
3 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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:

View File

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