@modern-js/uni-builder 0.0.0-nightly-20240304170717 → 0.0.0-nightly-20240306170726
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.
|
@@ -39,7 +39,7 @@ const pluginBabelPost = () => ({
|
|
|
39
39
|
api.modifyBundlerChain({
|
|
40
40
|
handler: async (chain, { CHAIN_ID }) => {
|
|
41
41
|
if (chain.module.rules.get(CHAIN_ID.RULE.JS)) {
|
|
42
|
-
const babelLoaderOptions = chain.module.rule(CHAIN_ID.RULE.JS).use(CHAIN_ID.USE.BABEL).get("options");
|
|
42
|
+
const { cacheIdentifier, ...babelLoaderOptions } = chain.module.rule(CHAIN_ID.RULE.JS).use(CHAIN_ID.USE.BABEL).get("options");
|
|
43
43
|
const config = api.getNormalizedConfig();
|
|
44
44
|
if (babelLoaderOptions && (0, import_isEqual.default)((0, import_plugin_babel.getDefaultBabelOptions)(config, api.context), babelLoaderOptions)) {
|
|
45
45
|
chain.module.rule(CHAIN_ID.RULE.JS).uses.delete(CHAIN_ID.USE.BABEL);
|
|
@@ -193,7 +193,10 @@ async function parseCommonConfig(uniBuilderConfig, options) {
|
|
|
193
193
|
extraConfig.html.template = ({ entryName }) => templateByEntries[entryName];
|
|
194
194
|
}
|
|
195
195
|
if (templateParametersByEntries) {
|
|
196
|
-
extraConfig.html.templateParameters = (
|
|
196
|
+
extraConfig.html.templateParameters = (defaultValue, { entryName }) => ({
|
|
197
|
+
...defaultValue,
|
|
198
|
+
...templateParametersByEntries[entryName] || {}
|
|
199
|
+
});
|
|
197
200
|
}
|
|
198
201
|
var _tools;
|
|
199
202
|
(_tools = (_extraConfig1 = extraConfig).tools) !== null && _tools !== void 0 ? _tools : _extraConfig1.tools = {};
|
|
@@ -61,8 +61,8 @@ const pluginSplitChunks = () => ({
|
|
|
61
61
|
// rspack chunks type mismatch with webpack
|
|
62
62
|
// @ts-expect-error
|
|
63
63
|
cacheGroups: {
|
|
64
|
-
...
|
|
65
|
-
...
|
|
64
|
+
...(0, import_shared.createCacheGroups)(groups),
|
|
65
|
+
...currentConfig.cacheGroups
|
|
66
66
|
}
|
|
67
67
|
});
|
|
68
68
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@modern-js/uni-builder",
|
|
3
|
-
"version": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20240306170726",
|
|
4
4
|
"description": "Unified builder for Modern.js",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -26,23 +26,23 @@
|
|
|
26
26
|
"@babel/preset-react": "^7.22.15",
|
|
27
27
|
"@babel/types": "^7.23.0",
|
|
28
28
|
"@pmmmwh/react-refresh-webpack-plugin": "0.5.10",
|
|
29
|
-
"@rsbuild/babel-preset": "0.4.
|
|
30
|
-
"@rsbuild/core": "0.4.
|
|
31
|
-
"@rsbuild/plugin-assets-retry": "0.4.
|
|
32
|
-
"@rsbuild/plugin-babel": "0.4.
|
|
33
|
-
"@rsbuild/plugin-check-syntax": "0.4.
|
|
34
|
-
"@rsbuild/plugin-css-minimizer": "0.4.
|
|
35
|
-
"@rsbuild/plugin-pug": "0.4.
|
|
36
|
-
"@rsbuild/plugin-react": "0.4.
|
|
37
|
-
"@rsbuild/plugin-rem": "0.4.
|
|
38
|
-
"@rsbuild/plugin-source-build": "0.4.
|
|
39
|
-
"@rsbuild/plugin-styled-components": "0.4.
|
|
40
|
-
"@rsbuild/plugin-svgr": "0.4.
|
|
41
|
-
"@rsbuild/plugin-type-check": "0.4.
|
|
42
|
-
"@rsbuild/plugin-toml": "0.4.
|
|
43
|
-
"@rsbuild/plugin-yaml": "0.4.
|
|
44
|
-
"@rsbuild/shared": "0.4.
|
|
45
|
-
"@rsbuild/webpack": "0.4.
|
|
29
|
+
"@rsbuild/babel-preset": "0.4.11",
|
|
30
|
+
"@rsbuild/core": "0.4.11",
|
|
31
|
+
"@rsbuild/plugin-assets-retry": "0.4.11",
|
|
32
|
+
"@rsbuild/plugin-babel": "0.4.11",
|
|
33
|
+
"@rsbuild/plugin-check-syntax": "0.4.11",
|
|
34
|
+
"@rsbuild/plugin-css-minimizer": "0.4.11",
|
|
35
|
+
"@rsbuild/plugin-pug": "0.4.11",
|
|
36
|
+
"@rsbuild/plugin-react": "0.4.11",
|
|
37
|
+
"@rsbuild/plugin-rem": "0.4.11",
|
|
38
|
+
"@rsbuild/plugin-source-build": "0.4.11",
|
|
39
|
+
"@rsbuild/plugin-styled-components": "0.4.11",
|
|
40
|
+
"@rsbuild/plugin-svgr": "0.4.11",
|
|
41
|
+
"@rsbuild/plugin-type-check": "0.4.11",
|
|
42
|
+
"@rsbuild/plugin-toml": "0.4.11",
|
|
43
|
+
"@rsbuild/plugin-yaml": "0.4.11",
|
|
44
|
+
"@rsbuild/shared": "0.4.11",
|
|
45
|
+
"@rsbuild/webpack": "0.4.11",
|
|
46
46
|
"@swc/helpers": "0.5.3",
|
|
47
47
|
"babel-loader": "9.1.3",
|
|
48
48
|
"babel-plugin-import": "1.13.5",
|
|
@@ -66,18 +66,18 @@
|
|
|
66
66
|
"webpack": "^5.89.0",
|
|
67
67
|
"webpack-manifest-plugin": "5.0.0",
|
|
68
68
|
"webpack-subresource-integrity": "5.1.0",
|
|
69
|
-
"@modern-js/utils": "0.0.0-nightly-
|
|
70
|
-
"@modern-js/server": "0.0.0-nightly-
|
|
71
|
-
"@modern-js/prod-server": "0.0.0-nightly-20240304170717"
|
|
69
|
+
"@modern-js/utils": "0.0.0-nightly-20240306170726",
|
|
70
|
+
"@modern-js/server": "0.0.0-nightly-20240306170726"
|
|
72
71
|
},
|
|
73
72
|
"devDependencies": {
|
|
74
|
-
"@rsbuild/plugin-swc": "0.4.
|
|
73
|
+
"@rsbuild/plugin-swc": "0.4.11",
|
|
75
74
|
"@types/lodash": "^4.14.202",
|
|
76
75
|
"react": "^18.2.0",
|
|
77
76
|
"react-dom": "^18.2.0",
|
|
78
77
|
"typescript": "^5.3.0",
|
|
79
|
-
"@
|
|
80
|
-
"@scripts/
|
|
78
|
+
"@modern-js/prod-server": "0.0.0-nightly-20240306170726",
|
|
79
|
+
"@scripts/build": "0.0.0-nightly-20240306170726",
|
|
80
|
+
"@scripts/vitest-config": "0.0.0-nightly-20240306170726"
|
|
81
81
|
},
|
|
82
82
|
"publishConfig": {
|
|
83
83
|
"access": "public",
|