Skip to content

Commit 78eb28b

Browse files
Release 8.0.1 (#60)
## What's changed * fix: disable compress in swc minify (#59)
2 parents 105babb + b291336 commit 78eb28b

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

config/rspack.config.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin');
77
const dotenv = require('dotenv');
88
const { DotenvPlugin } = require('rspack-plugin-dotenv');
99
const dotenvExpand = require('dotenv-expand');
10-
const { CopyRspackPlugin, DefinePlugin } = require('@rspack/core');
10+
const {
11+
CopyRspackPlugin, DefinePlugin, SwcJsMinimizerRspackPlugin, SwcCssMinimizerRspackPlugin,
12+
} = require('@rspack/core');
1113
const ReactRefreshPlugin = require('@rspack/plugin-react-refresh');
1214
const HtmlWebpackPlugin = require('html-webpack-plugin');
1315
const { RsdoctorRspackPlugin } = require('@rsdoctor/rspack-plugin');
@@ -185,6 +187,16 @@ module.exports = (webpackEnv, argv) => {
185187
fs: false,
186188
},
187189
},
190+
optimization: {
191+
minimizer: [
192+
// Disable compress as it has some bugs, i.e. when using arquero#from it fails if no names are passed.
193+
// See https://github.com/web-infra-dev/rspack/issues/4980 for a discussion.
194+
new SwcJsMinimizerRspackPlugin({
195+
compress: false,
196+
}),
197+
new SwcCssMinimizerRspackPlugin(),
198+
],
199+
},
188200
module: {
189201
rules: [
190202
{

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "visyn_scripts",
33
"description": "",
4-
"version": "8.0.0",
4+
"version": "8.0.1",
55
"author": {
66
"name": "datavisyn GmbH",
77
"email": "[email protected]",

0 commit comments

Comments
 (0)