Skip to content

Commit 50cc1b2

Browse files
committed
Use a copy of the given aliases and externals in the generated config
1 parent 14e0b27 commit 50cc1b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/config-generator.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class ConfigGenerator {
9292

9393
config.resolve = {
9494
extensions: ['.js', '.jsx', '.vue', '.ts', '.tsx'],
95-
alias: this.webpackConfig.aliases
95+
alias: Object.assign({}, this.webpackConfig.aliases)
9696
};
9797

9898
if (this.webpackConfig.useVueLoader) {
@@ -104,7 +104,7 @@ class ConfigGenerator {
104104
config.resolve.alias['react-dom'] = 'preact-compat';
105105
}
106106

107-
config.externals = this.webpackConfig.externals;
107+
config.externals = Object.assign({}, this.webpackConfig.externals);
108108

109109
return config;
110110
}

0 commit comments

Comments
 (0)