Skip to content

Commit 0e6bbe4

Browse files
committed
feat: disable mangle as it creates build errors
1 parent 06c2f2b commit 0e6bbe4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

config/rspack.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,10 +188,11 @@ module.exports = (webpackEnv, argv) => {
188188
},
189189
optimization: {
190190
minimizer: [
191-
// Disable compress as it has some bugs, i.e. when using arquero#from it fails if no names are passed.
191+
// Disable compress and mangle as it has some bugs, i.e. when using arquero#from it fails if no names are passed.
192192
// See https://github.com/web-infra-dev/rspack/issues/4980 for a discussion.
193193
new SwcJsMinimizerRspackPlugin({
194194
compress: false,
195+
mangle: false,
195196
}),
196197
new SwcCssMinimizerRspackPlugin(),
197198
],

0 commit comments

Comments
 (0)