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,
|
||||
getPlatforms: () => [],
|
||||
getPolyfillModuleNames: () => [],
|
||||
getProjectRoots: () => {
|
||||
// We assume the default project path is two levels up from
|
||||
// node_modules/metro-bundler/
|
||||
return [path.resolve(__dirname, '../..')];
|
||||
},
|
||||
// We assume the default project path is two levels up from
|
||||
// node_modules/metro-bundler/
|
||||
getProjectRoots: () => [path.resolve(__dirname, '../..')],
|
||||
getProvidesModuleNodeModules: () => providesModuleNodeModules.slice(),
|
||||
getSourceExts: () => [],
|
||||
getTransformModulePath: () =>
|
||||
require.resolve('metro-bundler/src/transformer.js'),
|
||||
getTransformModulePath: () => require.resolve('./transformer.js'),
|
||||
getTransformOptions: async () => ({}),
|
||||
getPolyfills: () => [],
|
||||
postMinifyProcess: x => x,
|
||||
|
|
Loading…
Reference in New Issue