@modern-js/uni-builder 2.67.6 → 2.67.8

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.
@@ -33,6 +33,7 @@ __export(babel_exports, {
33
33
  });
34
34
  module.exports = __toCommonJS(babel_exports);
35
35
  var import_cloneDeep = __toESM(require("lodash/cloneDeep"));
36
+ var import_cloneDeep2 = __toESM(require("lodash/cloneDeep"));
36
37
  var import_node = require("@modern-js/babel-preset/node");
37
38
  var import_web = require("@modern-js/babel-preset/web");
38
39
  var import_utils = require("@modern-js/utils");
@@ -114,10 +115,15 @@ const pluginBabel = (options, extraOptions) => ({
114
115
  }
115
116
  ]);
116
117
  }
117
- const babelConfig = (0, import_utils.applyOptionsChain)(baseBabelConfig, options === null || options === void 0 ? void 0 : options.babelLoaderOptions, {
118
- ...(0, import_plugin_babel.getBabelUtils)(baseBabelConfig),
119
- ...babelUtils
120
- });
118
+ const babelConfig = (0, import_utils.applyOptionsChain)(
119
+ baseBabelConfig,
120
+ // ensure that each environment has its own babel options(plugins, presets, etc.) in multi-environments.
121
+ (0, import_utils.isObject)(options === null || options === void 0 ? void 0 : options.babelLoaderOptions) ? (0, import_cloneDeep2.default)(options === null || options === void 0 ? void 0 : options.babelLoaderOptions) : options === null || options === void 0 ? void 0 : options.babelLoaderOptions,
122
+ {
123
+ ...(0, import_plugin_babel.getBabelUtils)(baseBabelConfig),
124
+ ...babelUtils
125
+ }
126
+ );
121
127
  const finalOptions = {
122
128
  babelrc: false,
123
129
  configFile: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modern-js/uni-builder",
3
- "version": "2.67.6",
3
+ "version": "2.67.8",
4
4
  "description": "Unified builder for Modern.js",
5
5
  "repository": {
6
6
  "type": "git",
@@ -30,16 +30,16 @@
30
30
  "@babel/preset-react": "^7.22.15",
31
31
  "@babel/types": "^7.26.0",
32
32
  "@pmmmwh/react-refresh-webpack-plugin": "0.5.16",
33
- "@rsbuild/core": "1.3.20",
33
+ "@rsbuild/core": "1.3.22",
34
34
  "@rsbuild/plugin-assets-retry": "1.2.1",
35
35
  "@rsbuild/plugin-babel": "1.0.5",
36
36
  "@rsbuild/plugin-check-syntax": "1.3.0",
37
37
  "@rsbuild/plugin-css-minimizer": "1.0.2",
38
38
  "@rsbuild/plugin-less": "1.2.4",
39
- "@rsbuild/plugin-pug": "1.2.0",
40
- "@rsbuild/plugin-react": "1.3.1",
39
+ "@rsbuild/plugin-pug": "1.3.0",
40
+ "@rsbuild/plugin-react": "1.3.2",
41
41
  "@rsbuild/plugin-rem": "1.0.2",
42
- "@rsbuild/plugin-sass": "1.3.1",
42
+ "@rsbuild/plugin-sass": "1.3.2",
43
43
  "@rsbuild/plugin-source-build": "1.0.2",
44
44
  "@rsbuild/plugin-styled-components": "1.3.0",
45
45
  "@rsbuild/plugin-svgr": "1.2.0",
@@ -47,7 +47,7 @@
47
47
  "@rsbuild/plugin-type-check": "1.2.2",
48
48
  "@rsbuild/plugin-typed-css-modules": "1.0.2",
49
49
  "@rsbuild/plugin-yaml": "1.0.2",
50
- "@rsbuild/webpack": "1.3.1",
50
+ "@rsbuild/webpack": "1.3.2",
51
51
  "@swc/core": "1.10.18",
52
52
  "@swc/helpers": "^0.5.17",
53
53
  "autoprefixer": "10.4.21",
@@ -80,9 +80,9 @@
80
80
  "ts-loader": "9.4.4",
81
81
  "webpack": "^5.99.8",
82
82
  "webpack-subresource-integrity": "5.1.0",
83
- "@modern-js/flight-server-transform-plugin": "2.67.6",
84
- "@modern-js/babel-preset": "2.67.6",
85
- "@modern-js/utils": "2.67.6"
83
+ "@modern-js/babel-preset": "2.67.8",
84
+ "@modern-js/flight-server-transform-plugin": "2.67.8",
85
+ "@modern-js/utils": "2.67.8"
86
86
  },
87
87
  "devDependencies": {
88
88
  "@rsbuild/plugin-webpack-swc": "1.1.1",
@@ -93,7 +93,7 @@
93
93
  "react-dom": "^18.2.0",
94
94
  "terser": "^5.31.1",
95
95
  "typescript": "^5.3.0",
96
- "@modern-js/types": "2.67.6",
96
+ "@modern-js/types": "2.67.8",
97
97
  "@scripts/build": "2.66.0",
98
98
  "@scripts/vitest-config": "2.66.0"
99
99
  },