File tree Expand file tree Collapse file tree 1 file changed +8
-13
lines changed Expand file tree Collapse file tree 1 file changed +8
-13
lines changed Original file line number Diff line number Diff line change @@ -29,10 +29,7 @@ export type ConfigLoadingContext = $ReadOnly<{
2929/**
3030 * Get the config options to override based on RN CLI inputs.
3131 */
32- function getOverrideConfig (
33- ctx : ConfigLoadingContext ,
34- config : ConfigT ,
35- ) : InputConfigT {
32+ function getOverrideConfig ( ctx : ConfigLoadingContext ) : InputConfigT {
3633 const outOfTreePlatforms = Object . keys ( ctx . platforms ) . filter (
3734 platform => ctx . platforms [ platform ] . npmPackageName ,
3835 ) ;
@@ -49,7 +46,6 @@ function getOverrideConfig(
4946 } ,
5047 { } ,
5148 ) ,
52- config . resolver ?. resolveRequest ,
5349 ) ;
5450 }
5551
@@ -109,12 +105,11 @@ This warning will be removed in future (https://github.com/facebook/metro/issues
109105 }
110106 }
111107
112- const config = await loadConfig ( {
113- cwd,
114- ...options ,
115- } ) ;
116-
117- const overrideConfig = getOverrideConfig ( ctx , config ) ;
118-
119- return mergeConfig ( config , overrideConfig ) ;
108+ return mergeConfig (
109+ await loadConfig ( {
110+ cwd,
111+ ...options ,
112+ } ) ,
113+ overrideConfig ,
114+ ) ;
120115}
You can’t perform that action at this time.
0 commit comments