@modern-js/uni-builder 2.47.0 → 2.48.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.
@@ -41,7 +41,7 @@ const pluginBabelPost = () => ({
41
41
  if (chain.module.rules.get(CHAIN_ID.RULE.JS)) {
42
42
  const babelLoaderOptions = chain.module.rule(CHAIN_ID.RULE.JS).use(CHAIN_ID.USE.BABEL).get("options");
43
43
  const config = api.getNormalizedConfig();
44
- if (babelLoaderOptions && (0, import_isEqual.default)((0, import_plugin_babel.getDefaultBabelOptions)(config.source.decorators), babelLoaderOptions)) {
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);
46
46
  }
47
47
  }
@@ -52,7 +52,7 @@ const resourceRuleFallback = (rules = []) => {
52
52
  import_shared.TS_REGEX,
53
53
  // exclude `html` and `json`, they get processed by webpack internal loaders.
54
54
  import_shared.HTML_REGEX,
55
- import_shared.JSON_REGEX
55
+ /\.json$/
56
56
  ],
57
57
  type: "asset/resource"
58
58
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modern-js/uni-builder",
3
- "version": "2.47.0",
3
+ "version": "2.48.0",
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.4",
30
- "@rsbuild/core": "0.4.4",
31
- "@rsbuild/plugin-assets-retry": "0.4.4",
32
- "@rsbuild/plugin-babel": "0.4.4",
33
- "@rsbuild/plugin-check-syntax": "0.4.4",
34
- "@rsbuild/plugin-css-minimizer": "0.4.4",
35
- "@rsbuild/plugin-pug": "0.4.4",
36
- "@rsbuild/plugin-react": "0.4.4",
37
- "@rsbuild/plugin-rem": "0.4.4",
38
- "@rsbuild/plugin-source-build": "0.4.4",
39
- "@rsbuild/plugin-styled-components": "0.4.4",
40
- "@rsbuild/plugin-svgr": "0.4.4",
41
- "@rsbuild/plugin-type-check": "0.4.4",
42
- "@rsbuild/plugin-toml": "0.4.4",
43
- "@rsbuild/plugin-yaml": "0.4.4",
44
- "@rsbuild/shared": "0.4.4",
45
- "@rsbuild/webpack": "0.4.4",
29
+ "@rsbuild/babel-preset": "0.4.8",
30
+ "@rsbuild/core": "0.4.8",
31
+ "@rsbuild/plugin-assets-retry": "0.4.8",
32
+ "@rsbuild/plugin-babel": "0.4.8",
33
+ "@rsbuild/plugin-check-syntax": "0.4.8",
34
+ "@rsbuild/plugin-css-minimizer": "0.4.8",
35
+ "@rsbuild/plugin-pug": "0.4.8",
36
+ "@rsbuild/plugin-react": "0.4.8",
37
+ "@rsbuild/plugin-rem": "0.4.8",
38
+ "@rsbuild/plugin-source-build": "0.4.8",
39
+ "@rsbuild/plugin-styled-components": "0.4.8",
40
+ "@rsbuild/plugin-svgr": "0.4.8",
41
+ "@rsbuild/plugin-type-check": "0.4.8",
42
+ "@rsbuild/plugin-toml": "0.4.8",
43
+ "@rsbuild/plugin-yaml": "0.4.8",
44
+ "@rsbuild/shared": "0.4.8",
45
+ "@rsbuild/webpack": "0.4.8",
46
46
  "@swc/helpers": "0.5.3",
47
47
  "babel-loader": "9.1.3",
48
48
  "babel-plugin-import": "1.13.5",
@@ -65,18 +65,18 @@
65
65
  "webpack": "^5.89.0",
66
66
  "webpack-manifest-plugin": "5.0.0",
67
67
  "webpack-subresource-integrity": "5.1.0",
68
- "@modern-js/utils": "2.47.0",
69
- "@modern-js/server": "2.47.0",
70
- "@modern-js/prod-server": "2.47.0"
68
+ "@modern-js/utils": "2.48.0",
69
+ "@modern-js/prod-server": "2.48.0",
70
+ "@modern-js/server": "2.48.0"
71
71
  },
72
72
  "devDependencies": {
73
- "@rsbuild/plugin-swc": "0.4.4",
73
+ "@rsbuild/plugin-swc": "0.4.8",
74
74
  "@types/lodash": "^4.14.202",
75
75
  "react": "^18.2.0",
76
76
  "react-dom": "^18.2.0",
77
77
  "typescript": "^5.3.0",
78
- "@scripts/build": "2.47.0",
79
- "@scripts/vitest-config": "2.47.0"
78
+ "@scripts/build": "2.48.0",
79
+ "@scripts/vitest-config": "2.48.0"
80
80
  },
81
81
  "publishConfig": {
82
82
  "access": "public",