Skip to content

Commit

Permalink
Release 8.0.1 (#60)
Browse files Browse the repository at this point in the history
## What's changed

* fix: disable compress in swc minify
(#59)
  • Loading branch information
dvvanessastoiber authored Mar 1, 2024
2 parents 105babb + b291336 commit 78eb28b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
14 changes: 13 additions & 1 deletion config/rspack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin');
const dotenv = require('dotenv');
const { DotenvPlugin } = require('rspack-plugin-dotenv');
const dotenvExpand = require('dotenv-expand');
const { CopyRspackPlugin, DefinePlugin } = require('@rspack/core');
const {
CopyRspackPlugin, DefinePlugin, SwcJsMinimizerRspackPlugin, SwcCssMinimizerRspackPlugin,
} = require('@rspack/core');
const ReactRefreshPlugin = require('@rspack/plugin-react-refresh');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const { RsdoctorRspackPlugin } = require('@rsdoctor/rspack-plugin');
Expand Down Expand Up @@ -185,6 +187,16 @@ module.exports = (webpackEnv, argv) => {
fs: false,
},
},
optimization: {
minimizer: [
// Disable compress as it has some bugs, i.e. when using arquero#from it fails if no names are passed.
// See https://github.com/web-infra-dev/rspack/issues/4980 for a discussion.
new SwcJsMinimizerRspackPlugin({
compress: false,
}),
new SwcCssMinimizerRspackPlugin(),
],
},
module: {
rules: [
{
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "visyn_scripts",
"description": "",
"version": "8.0.0",
"version": "8.0.1",
"author": {
"name": "datavisyn GmbH",
"email": "[email protected]",
Expand Down

0 comments on commit 78eb28b

Please sign in to comment.