Small Config defaults cleanup

Reviewed By: davidaurelio

Differential Revision: D5841910

fbshipit-source-id: e3645a115da4a445dd2b16cf9adccf68462513f9
This commit is contained in:
Christoph Nakazawa 2017-09-28 09:53:00 -07:00 committed by Facebook Github Bot
parent ccbe4bc78c
commit 34b108b37e
1 changed files with 4 additions and 7 deletions

View File

@ -143,15 +143,12 @@ const DEFAULT = ({
getEnableBabelRCLookup: () => false, getEnableBabelRCLookup: () => false,
getPlatforms: () => [], getPlatforms: () => [],
getPolyfillModuleNames: () => [], getPolyfillModuleNames: () => [],
getProjectRoots: () => { // We assume the default project path is two levels up from
// We assume the default project path is two levels up from // node_modules/metro-bundler/
// node_modules/metro-bundler/ getProjectRoots: () => [path.resolve(__dirname, '../..')],
return [path.resolve(__dirname, '../..')];
},
getProvidesModuleNodeModules: () => providesModuleNodeModules.slice(), getProvidesModuleNodeModules: () => providesModuleNodeModules.slice(),
getSourceExts: () => [], getSourceExts: () => [],
getTransformModulePath: () => getTransformModulePath: () => require.resolve('./transformer.js'),
require.resolve('metro-bundler/src/transformer.js'),
getTransformOptions: async () => ({}), getTransformOptions: async () => ({}),
getPolyfills: () => [], getPolyfills: () => [],
postMinifyProcess: x => x, postMinifyProcess: x => x,