@modern-js/uni-builder 2.60.5 → 2.61.0
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.
|
@@ -1,9 +1,2 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare const generateManifest:
|
|
3
|
-
chunk?: Rspack.Chunk;
|
|
4
|
-
name: string;
|
|
5
|
-
path: string;
|
|
6
|
-
}>, entries: Record<string, string[]>) => {
|
|
7
|
-
files: Record<string, any>;
|
|
8
|
-
entrypoints: string[];
|
|
9
|
-
};
|
|
1
|
+
import type { ManifestPluginOptions } from 'rspack-manifest-plugin';
|
|
2
|
+
export declare const generateManifest: ManifestPluginOptions['generate'];
|
|
@@ -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
|
|
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.
|
|
3
|
+
"version": "2.61.0",
|
|
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.
|
|
25
|
+
"@babel/core": "^7.26.0",
|
|
26
26
|
"@babel/preset-react": "^7.22.15",
|
|
27
|
-
"@babel/types": "^7.
|
|
27
|
+
"@babel/types": "^7.26.0",
|
|
28
28
|
"@pmmmwh/react-refresh-webpack-plugin": "0.5.15",
|
|
29
|
-
"@rsbuild/core": "~1.0.
|
|
29
|
+
"@rsbuild/core": "~1.1.0-beta.1",
|
|
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
|
|
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
|
|
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",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@rsbuild/plugin-type-check": "~1.0.1",
|
|
44
44
|
"@rsbuild/plugin-typed-css-modules": "~1.0.2",
|
|
45
45
|
"@rsbuild/plugin-yaml": "~1.0.2",
|
|
46
|
-
"@rsbuild/webpack": "~1.0.
|
|
46
|
+
"@rsbuild/webpack": "~1.1.0-beta.1",
|
|
47
47
|
"@swc/helpers": "0.5.13",
|
|
48
48
|
"autoprefixer": "10.4.20",
|
|
49
49
|
"babel-loader": "9.1.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.
|
|
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",
|
|
@@ -70,10 +70,10 @@
|
|
|
70
70
|
"terser-webpack-plugin": "5.3.10",
|
|
71
71
|
"ts-deepmerge": "7.0.1",
|
|
72
72
|
"ts-loader": "9.4.4",
|
|
73
|
-
"webpack": "^5.
|
|
73
|
+
"webpack": "^5.96.1",
|
|
74
74
|
"webpack-subresource-integrity": "5.1.0",
|
|
75
|
-
"@modern-js/babel-preset": "2.
|
|
76
|
-
"@modern-js/utils": "2.
|
|
75
|
+
"@modern-js/babel-preset": "2.61.0",
|
|
76
|
+
"@modern-js/utils": "2.61.0"
|
|
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.
|
|
87
|
-
"@scripts/vitest-config": "2.
|
|
86
|
+
"@scripts/build": "2.61.0",
|
|
87
|
+
"@scripts/vitest-config": "2.61.0"
|
|
88
88
|
},
|
|
89
89
|
"publishConfig": {
|
|
90
90
|
"access": "public",
|