We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 809aef9 commit c364284Copy full SHA for c364284
packages/cli/src/tools/loadMetroConfig.js
@@ -82,8 +82,8 @@ export type ConfigOptionsT = {|
82
*/
83
export default function load(ctx: ConfigT, options?: ConfigOptionsT) {
84
const defaultConfig = getDefaultConfig(ctx);
85
- return loadConfig(
86
- {cwd: ctx.root, ...options},
87
- {...defaultConfig, reporter: options && options.reporter},
88
- );
+ if (options && options.reporter) {
+ defaultConfig.reporter = options.reporter;
+ }
+ return loadConfig({cwd: ctx.root, ...options}, defaultConfig);
89
}
0 commit comments