@modern-js/uni-builder 2.49.2 → 2.49.4

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.
@@ -36,9 +36,9 @@ const pluginManifest = () => ({
36
36
  name: "uni-builder:manifest",
37
37
  setup(api) {
38
38
  api.modifyBundlerChain(async (chain, { target, CHAIN_ID }) => {
39
- const { WebpackManifestPlugin } = await Promise.resolve().then(() => __toESM(require("rspack-manifest-plugin")));
39
+ const { RspackManifestPlugin } = await Promise.resolve().then(() => __toESM(require("rspack-manifest-plugin")));
40
40
  const publicPath = chain.output.get("publicPath");
41
- chain.plugin(CHAIN_ID.PLUGIN.MANIFEST).use(WebpackManifestPlugin, [
41
+ chain.plugin(CHAIN_ID.PLUGIN.MANIFEST).use(RspackManifestPlugin, [
42
42
  {
43
43
  fileName: target === "web" ? "asset-manifest.json" : `asset-manifest-${target}.json`,
44
44
  publicPath,
@@ -143,6 +143,7 @@ const pluginBabel = (options, extraOptions) => ({
143
143
  const { babelOptions, includes, excludes } = getBabelOptions(config);
144
144
  const rule = chain.module.rule(CHAIN_ID.RULE.JS);
145
145
  (0, import_shared.applyScriptCondition)({
146
+ chain,
146
147
  rule,
147
148
  config,
148
149
  context: api.context,
@@ -88,6 +88,7 @@ const pluginTsLoader = (options, babelOptions) => {
88
88
  });
89
89
  const rule = chain.module.rule(CHAIN_ID.RULE.TS);
90
90
  (0, import_shared.applyScriptCondition)({
91
+ chain,
91
92
  rule,
92
93
  config,
93
94
  context: api.context,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modern-js/uni-builder",
3
- "version": "2.49.2",
3
+ "version": "2.49.4",
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.6.6",
30
- "@rsbuild/core": "0.6.6",
31
- "@rsbuild/plugin-assets-retry": "0.6.6",
32
- "@rsbuild/plugin-babel": "0.6.6",
33
- "@rsbuild/plugin-check-syntax": "0.6.6",
34
- "@rsbuild/plugin-css-minimizer": "0.6.6",
35
- "@rsbuild/plugin-pug": "0.6.6",
36
- "@rsbuild/plugin-react": "0.6.6",
37
- "@rsbuild/plugin-rem": "0.6.6",
38
- "@rsbuild/plugin-source-build": "0.6.6",
39
- "@rsbuild/plugin-styled-components": "0.6.6",
40
- "@rsbuild/plugin-svgr": "0.6.6",
41
- "@rsbuild/plugin-type-check": "0.6.6",
42
- "@rsbuild/plugin-toml": "0.6.6",
43
- "@rsbuild/plugin-yaml": "0.6.6",
44
- "@rsbuild/shared": "0.6.6",
45
- "@rsbuild/webpack": "0.6.6",
29
+ "@rsbuild/babel-preset": "0.6.15",
30
+ "@rsbuild/core": "0.6.15",
31
+ "@rsbuild/plugin-assets-retry": "0.6.15",
32
+ "@rsbuild/plugin-babel": "0.6.15",
33
+ "@rsbuild/plugin-check-syntax": "0.6.15",
34
+ "@rsbuild/plugin-css-minimizer": "0.6.15",
35
+ "@rsbuild/plugin-pug": "0.6.15",
36
+ "@rsbuild/plugin-react": "0.6.15",
37
+ "@rsbuild/plugin-rem": "0.6.15",
38
+ "@rsbuild/plugin-source-build": "0.6.15",
39
+ "@rsbuild/plugin-styled-components": "0.6.15",
40
+ "@rsbuild/plugin-svgr": "0.6.15",
41
+ "@rsbuild/plugin-type-check": "0.6.15",
42
+ "@rsbuild/plugin-toml": "0.6.15",
43
+ "@rsbuild/plugin-yaml": "0.6.15",
44
+ "@rsbuild/shared": "0.6.15",
45
+ "@rsbuild/webpack": "0.6.15",
46
46
  "@swc/helpers": "0.5.3",
47
47
  "babel-loader": "9.1.3",
48
48
  "babel-plugin-import": "1.13.5",
@@ -61,23 +61,23 @@
61
61
  "postcss-nesting": "12.0.1",
62
62
  "postcss-page-break": "3.0.4",
63
63
  "react-refresh": "^0.14.0",
64
- "rspack-manifest-plugin": "5.0.0-alpha0",
64
+ "rspack-manifest-plugin": "5.0.0",
65
65
  "terser-webpack-plugin": "5.3.10",
66
66
  "ts-loader": "9.4.4",
67
67
  "webpack": "^5.91.0",
68
68
  "webpack-subresource-integrity": "5.1.0",
69
- "@modern-js/server": "2.49.2",
70
- "@modern-js/utils": "2.49.2"
69
+ "@modern-js/server": "2.49.4",
70
+ "@modern-js/prod-server": "2.49.4",
71
+ "@modern-js/utils": "2.49.4"
71
72
  },
72
73
  "devDependencies": {
73
- "@rsbuild/plugin-swc": "0.6.6",
74
+ "@rsbuild/plugin-swc": "0.6.15",
74
75
  "@types/lodash": "^4.14.202",
75
76
  "react": "^18.2.0",
76
77
  "react-dom": "^18.2.0",
77
78
  "typescript": "^5.3.0",
78
- "@scripts/vitest-config": "2.49.2",
79
- "@modern-js/prod-server": "2.49.2",
80
- "@scripts/build": "2.49.2"
79
+ "@scripts/vitest-config": "2.49.4",
80
+ "@scripts/build": "2.49.4"
81
81
  },
82
82
  "publishConfig": {
83
83
  "access": "public",