@modern-js/uni-builder 2.60.5 → 2.60.6

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.
@@ -107,6 +107,9 @@ const pluginHtmlMinifierTerser = () => ({
107
107
  return options;
108
108
  }
109
109
  const userMinifyOption = options[0].minify;
110
+ if (userMinifyOption === false) {
111
+ return options;
112
+ }
110
113
  const minifyFn = (html) => minify(html, userMinifyOption ? (0, import_ts_deepmerge.merge)(minifyOptions, userMinifyOption) : minifyOptions);
111
114
  options[0].minify = minifyFn;
112
115
  return options;
@@ -120,10 +123,10 @@ const pluginHtmlMinifierTerser = () => ({
120
123
  });
121
124
  if (isHtmlWebpackPlugin) {
122
125
  chain.plugin(id).tap((options) => {
123
- if (!options.length || options[0].minify) {
126
+ if (!options.length) {
124
127
  return options;
125
128
  }
126
- if (disableHtmlMinify) {
129
+ if (disableHtmlMinify || options[0].minify === false) {
127
130
  options[0].minify = false;
128
131
  return options;
129
132
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modern-js/uni-builder",
3
- "version": "2.60.5",
3
+ "version": "2.60.6",
4
4
  "description": "Unified builder for Modern.js",
5
5
  "repository": {
6
6
  "type": "git",
@@ -22,20 +22,20 @@
22
22
  "dist"
23
23
  ],
24
24
  "dependencies": {
25
- "@babel/core": "^7.24.7",
25
+ "@babel/core": "^7.26.0",
26
26
  "@babel/preset-react": "^7.22.15",
27
- "@babel/types": "^7.24.7",
27
+ "@babel/types": "^7.26.0",
28
28
  "@pmmmwh/react-refresh-webpack-plugin": "0.5.15",
29
29
  "@rsbuild/core": "~1.0.11",
30
30
  "@rsbuild/plugin-assets-retry": "~1.0.1",
31
31
  "@rsbuild/plugin-babel": "~1.0.1",
32
32
  "@rsbuild/plugin-check-syntax": "~1.0.1",
33
33
  "@rsbuild/plugin-css-minimizer": "~1.0.2",
34
- "@rsbuild/plugin-less": "~1.0.1",
34
+ "@rsbuild/plugin-less": "~1.1.0",
35
35
  "@rsbuild/plugin-pug": "~1.0.2",
36
36
  "@rsbuild/plugin-react": "~1.0.3",
37
37
  "@rsbuild/plugin-rem": "~1.0.1",
38
- "@rsbuild/plugin-sass": "~1.0.2",
38
+ "@rsbuild/plugin-sass": "~1.1.0",
39
39
  "@rsbuild/plugin-source-build": "~1.0.1",
40
40
  "@rsbuild/plugin-styled-components": "~1.0.1",
41
41
  "@rsbuild/plugin-svgr": "~1.0.3",
@@ -54,7 +54,7 @@
54
54
  "cssnano": "6.0.1",
55
55
  "glob": "^9.3.5",
56
56
  "html-minifier-terser": "^7.2.0",
57
- "html-webpack-plugin": "5.6.2",
57
+ "html-webpack-plugin": "5.6.3",
58
58
  "lodash": "^4.17.21",
59
59
  "picocolors": "^1.0.1",
60
60
  "postcss": "^8.4.35",
@@ -72,8 +72,8 @@
72
72
  "ts-loader": "9.4.4",
73
73
  "webpack": "^5.95.0",
74
74
  "webpack-subresource-integrity": "5.1.0",
75
- "@modern-js/babel-preset": "2.60.5",
76
- "@modern-js/utils": "2.60.5"
75
+ "@modern-js/babel-preset": "2.60.6",
76
+ "@modern-js/utils": "2.60.6"
77
77
  },
78
78
  "devDependencies": {
79
79
  "@rsbuild/plugin-webpack-swc": "~1.0.3",
@@ -83,8 +83,8 @@
83
83
  "react-dom": "^18.3.1",
84
84
  "terser": "^5.31.1",
85
85
  "typescript": "^5.3.0",
86
- "@scripts/build": "2.60.5",
87
- "@scripts/vitest-config": "2.60.5"
86
+ "@scripts/build": "2.60.6",
87
+ "@scripts/vitest-config": "2.60.6"
88
88
  },
89
89
  "publishConfig": {
90
90
  "access": "public",