swico 2.0.0-beta.34 → 2.0.0-beta.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "swico",
3
- "version": "2.0.0-beta.34",
3
+ "version": "2.0.0-beta.35",
4
4
  "description": "Simple, efficient, and practical front-end framework",
5
5
  "main": "./src/index.js",
6
6
  "types": "./src/index.d.ts",
@@ -54,7 +54,6 @@
54
54
  "sass-embedded": "1.86.3",
55
55
  "sass-loader": "16.0.5",
56
56
  "style-loader": "3.3.0",
57
- "terser-webpack-plugin": "5.3.14",
58
57
  "ts-checker-rspack-plugin": "1.1.1",
59
58
  "ts-node": "10.9.1",
60
59
  "vue-loader": "17.4.2",
@@ -52,7 +52,6 @@ const fs_extra_1 = __importDefault(require("fs-extra"));
52
52
  const config_1 = require("../utils/config");
53
53
  const webpack_merge_1 = require("webpack-merge");
54
54
  const core_1 = require("@rspack/core");
55
- const terser_webpack_plugin_1 = __importDefault(require("terser-webpack-plugin"));
56
55
  const BundleAnalyzerPlugin = webpack_bundle_analyzer_1.default.BundleAnalyzerPlugin;
57
56
  const isAnalyze = process.env.ANALYZE === 'true';
58
57
  function default_1(options) {
@@ -80,15 +79,16 @@ function default_1(options) {
80
79
  runtimeChunk: true,
81
80
  minimize: true,
82
81
  minimizer: [
83
- new core_1.rspack.SwcJsMinimizerRspackPlugin({}),
84
- new terser_webpack_plugin_1.default({
85
- test: /\.js$/,
86
- parallel: true,
87
- minify: terser_webpack_plugin_1.default.swcMinify,
88
- terserOptions: {
82
+ new core_1.rspack.SwcJsMinimizerRspackPlugin({
83
+ minimizerOptions: {
84
+ minify: true,
85
+ mangle: true,
89
86
  compress: {
90
- drop_console: !consoleAvailable,
91
- drop_debugger: true
87
+ passes: 2,
88
+ drop_console: !consoleAvailable
89
+ },
90
+ format: {
91
+ comments: false
92
92
  }
93
93
  }
94
94
  })