Skip to content

Commit

Permalink
revert webpack merge priority change
Browse files Browse the repository at this point in the history
  • Loading branch information
georgexu99 committed Aug 30, 2023
1 parent 43ab590 commit d290067
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/plugin/webpack/src/WebpackConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ export default class WebpackConfigGenerator {
);
}
}
return webpackMerge({ entry, output, plugins }, rendererConfig || {}, baseConfig);
return webpackMerge(baseConfig, rendererConfig || {}, { entry, output, plugins });
}

async buildRendererConfigForPreloadOrSandboxedPreloadTarget(
Expand Down Expand Up @@ -306,7 +306,7 @@ export default class WebpackConfigGenerator {
},
plugins: target === RendererTarget.ElectronPreload ? [] : [new webpack.ExternalsPlugin('commonjs2', externals)],
};
return webpackMerge(config, rendererConfig || {}, baseConfig);
return webpackMerge(baseConfig, rendererConfig || {}, config);
}

async buildRendererConfigs(entryPoints: WebpackPluginEntryPoint[], target: RendererTarget): Promise<Promise<webpack.Configuration | null>[]> {
Expand Down

0 comments on commit d290067

Please sign in to comment.