Skip to content

Commit 3d6fb55

Browse files
LyrkandeAtog
and
deAtog
authored
Ensure a copy of the externals is returned when generating a Webpack config.
Co-Authored-By: deAtog <[email protected]>
1 parent 84a0dc0 commit 3d6fb55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/config-generator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ class ConfigGenerator {
107107
config.resolve.alias['react-dom'] = 'preact-compat';
108108
}
109109

110-
config.externals = this.webpackConfig.externals;
110+
config.externals = [...this.webpackConfig.externals];
111111

112112
return config;
113113
}

0 commit comments

Comments
 (0)