@modern-js/uni-builder 2.67.7 → 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)(
|
|
118
|
-
|
|
119
|
-
|
|
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.
|
|
3
|
+
"version": "2.67.8",
|
|
4
4
|
"description": "Unified builder for Modern.js",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -37,9 +37,9 @@
|
|
|
37
37
|
"@rsbuild/plugin-css-minimizer": "1.0.2",
|
|
38
38
|
"@rsbuild/plugin-less": "1.2.4",
|
|
39
39
|
"@rsbuild/plugin-pug": "1.3.0",
|
|
40
|
-
"@rsbuild/plugin-react": "1.3.
|
|
40
|
+
"@rsbuild/plugin-react": "1.3.2",
|
|
41
41
|
"@rsbuild/plugin-rem": "1.0.2",
|
|
42
|
-
"@rsbuild/plugin-sass": "1.3.
|
|
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",
|
|
@@ -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/babel-preset": "2.67.
|
|
84
|
-
"@modern-js/flight-server-transform-plugin": "2.67.
|
|
85
|
-
"@modern-js/utils": "2.67.
|
|
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.
|
|
96
|
+
"@modern-js/types": "2.67.8",
|
|
97
97
|
"@scripts/build": "2.66.0",
|
|
98
98
|
"@scripts/vitest-config": "2.66.0"
|
|
99
99
|
},
|