Skip to content

Commit e4638b0

Browse files
authored
fix: disable compress and mangle in minimizer (#89)
1 parent 4988041 commit e4638b0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

config/rspack.config.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,10 @@ module.exports = (webpackEnv, argv) => {
178178
// Disable compress and mangle as it has some bugs, i.e. when using arquero#from it fails if no names are passed.
179179
// See https://github.com/web-infra-dev/rspack/issues/4980 for a discussion.
180180
new SwcJsMinimizerRspackPlugin({
181-
compress: false,
182-
mangle: false,
181+
minimizerOptions: {
182+
compress: false,
183+
mangle: false,
184+
},
183185
}),
184186
new LightningCssMinimizerRspackPlugin(),
185187
],

0 commit comments

Comments
 (0)