mirror of https://github.com/status-im/metro.git
Small Config defaults cleanup
Reviewed By: davidaurelio Differential Revision: D5841910 fbshipit-source-id: e3645a115da4a445dd2b16cf9adccf68462513f9
This commit is contained in:
parent
ccbe4bc78c
commit
34b108b37e
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue