Skip to content

Commit e73e3a3

Browse files
committed
revert loadMetroConfig change
1 parent 8a806ac commit e73e3a3

File tree

1 file changed

+8
-13
lines changed

1 file changed

+8
-13
lines changed

packages/community-cli-plugin/src/utils/loadMetroConfig.js

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)