@modern-js/uni-builder 2.63.0 → 2.63.1
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.
- package/dist/rspack/index.js +4 -1
- package/dist/webpack/index.js +6 -6
- package/package.json +25 -25
package/dist/rspack/index.js
CHANGED
|
@@ -84,11 +84,14 @@ async function createRspackBuilder(options) {
|
|
|
84
84
|
...rest,
|
|
85
85
|
cwd
|
|
86
86
|
});
|
|
87
|
+
rsbuildConfig.plugins = [
|
|
88
|
+
...rsbuildPlugins,
|
|
89
|
+
...rsbuildConfig.plugins || []
|
|
90
|
+
];
|
|
87
91
|
const rsbuild = await (0, import_core.createRsbuild)({
|
|
88
92
|
cwd,
|
|
89
93
|
rsbuildConfig
|
|
90
94
|
});
|
|
91
|
-
rsbuild.addPlugins(rsbuildPlugins);
|
|
92
95
|
return {
|
|
93
96
|
...rsbuild,
|
|
94
97
|
addPlugins: (plugins, options2) => {
|
package/dist/webpack/index.js
CHANGED
|
@@ -40,7 +40,7 @@ var import_babel = require("./plugins/babel");
|
|
|
40
40
|
var import_moduleScopes = require("./plugins/moduleScopes");
|
|
41
41
|
var import_react = require("./plugins/react");
|
|
42
42
|
async function parseConfig(uniBuilderConfig, options) {
|
|
43
|
-
var _uniBuilderConfig_tools, _uniBuilderConfig_performance, _uniBuilderConfig_tools1, _uniBuilderConfig_output, _uniBuilderConfig_security, _uniBuilderConfig_experiments, _uniBuilderConfig_tools2;
|
|
43
|
+
var _uniBuilderConfig_tools, _uniBuilderConfig_performance, _uniBuilderConfig_tools1, _uniBuilderConfig_output, _uniBuilderConfig_security, _uniBuilderConfig_experiments, _uniBuilderConfig_tools2, _uniBuilderConfig_source;
|
|
44
44
|
const { rsbuildConfig, rsbuildPlugins } = await (0, import_parseCommonConfig.parseCommonConfig)(uniBuilderConfig, options);
|
|
45
45
|
var _uniBuilderConfig_performance_transformLodash;
|
|
46
46
|
rsbuildPlugins.push((0, import_babel.pluginBabel)({
|
|
@@ -77,13 +77,13 @@ async function parseConfig(uniBuilderConfig, options) {
|
|
|
77
77
|
}
|
|
78
78
|
rsbuildPlugins.push(pluginStyledComponents(options2));
|
|
79
79
|
}
|
|
80
|
+
rsbuildPlugins.push((0, import_moduleScopes.pluginModuleScopes)((_uniBuilderConfig_source = uniBuilderConfig.source) === null || _uniBuilderConfig_source === void 0 ? void 0 : _uniBuilderConfig_source.moduleScopes));
|
|
80
81
|
return {
|
|
81
82
|
rsbuildConfig,
|
|
82
83
|
rsbuildPlugins
|
|
83
84
|
};
|
|
84
85
|
}
|
|
85
86
|
async function createWebpackBuilder(options) {
|
|
86
|
-
var _options_config_source;
|
|
87
87
|
const { cwd = process.cwd(), config, ...rest } = options;
|
|
88
88
|
const { rsbuildConfig, rsbuildPlugins } = await parseConfig(config, {
|
|
89
89
|
...rest,
|
|
@@ -94,14 +94,14 @@ async function createWebpackBuilder(options) {
|
|
|
94
94
|
const { default: HtmlWebpackPlugin } = await Promise.resolve().then(() => __toESM(require("html-webpack-plugin")));
|
|
95
95
|
setHTMLPlugin(HtmlWebpackPlugin);
|
|
96
96
|
rsbuildConfig.provider = webpackProvider;
|
|
97
|
+
rsbuildConfig.plugins = [
|
|
98
|
+
...rsbuildPlugins,
|
|
99
|
+
...rsbuildConfig.plugins || []
|
|
100
|
+
];
|
|
97
101
|
const rsbuild = await (0, import_core.createRsbuild)({
|
|
98
102
|
rsbuildConfig,
|
|
99
103
|
cwd
|
|
100
104
|
});
|
|
101
|
-
rsbuild.addPlugins([
|
|
102
|
-
...rsbuildPlugins,
|
|
103
|
-
(0, import_moduleScopes.pluginModuleScopes)((_options_config_source = options.config.source) === null || _options_config_source === void 0 ? void 0 : _options_config_source.moduleScopes)
|
|
104
|
-
]);
|
|
105
105
|
return {
|
|
106
106
|
...rsbuild,
|
|
107
107
|
addPlugins: (plugins, options2) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@modern-js/uni-builder",
|
|
3
|
-
"version": "2.63.
|
|
3
|
+
"version": "2.63.1",
|
|
4
4
|
"description": "Unified builder for Modern.js",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -26,24 +26,24 @@
|
|
|
26
26
|
"@babel/preset-react": "^7.22.15",
|
|
27
27
|
"@babel/types": "^7.26.0",
|
|
28
28
|
"@pmmmwh/react-refresh-webpack-plugin": "0.5.15",
|
|
29
|
-
"@rsbuild/core": "
|
|
30
|
-
"@rsbuild/plugin-assets-retry": "
|
|
31
|
-
"@rsbuild/plugin-babel": "
|
|
32
|
-
"@rsbuild/plugin-check-syntax": "
|
|
33
|
-
"@rsbuild/plugin-css-minimizer": "
|
|
34
|
-
"@rsbuild/plugin-less": "
|
|
35
|
-
"@rsbuild/plugin-pug": "
|
|
36
|
-
"@rsbuild/plugin-react": "
|
|
37
|
-
"@rsbuild/plugin-rem": "
|
|
38
|
-
"@rsbuild/plugin-sass": "
|
|
39
|
-
"@rsbuild/plugin-source-build": "
|
|
40
|
-
"@rsbuild/plugin-styled-components": "
|
|
41
|
-
"@rsbuild/plugin-svgr": "
|
|
42
|
-
"@rsbuild/plugin-toml": "
|
|
43
|
-
"@rsbuild/plugin-type-check": "
|
|
44
|
-
"@rsbuild/plugin-typed-css-modules": "
|
|
45
|
-
"@rsbuild/plugin-yaml": "
|
|
46
|
-
"@rsbuild/webpack": "
|
|
29
|
+
"@rsbuild/core": "1.1.8",
|
|
30
|
+
"@rsbuild/plugin-assets-retry": "1.0.6",
|
|
31
|
+
"@rsbuild/plugin-babel": "1.0.3",
|
|
32
|
+
"@rsbuild/plugin-check-syntax": "1.1.0",
|
|
33
|
+
"@rsbuild/plugin-css-minimizer": "1.0.2",
|
|
34
|
+
"@rsbuild/plugin-less": "1.1.0",
|
|
35
|
+
"@rsbuild/plugin-pug": "1.0.2",
|
|
36
|
+
"@rsbuild/plugin-react": "1.0.7",
|
|
37
|
+
"@rsbuild/plugin-rem": "1.0.2",
|
|
38
|
+
"@rsbuild/plugin-sass": "1.1.1",
|
|
39
|
+
"@rsbuild/plugin-source-build": "1.0.1",
|
|
40
|
+
"@rsbuild/plugin-styled-components": "1.1.0",
|
|
41
|
+
"@rsbuild/plugin-svgr": "1.0.5",
|
|
42
|
+
"@rsbuild/plugin-toml": "1.0.1",
|
|
43
|
+
"@rsbuild/plugin-type-check": "1.1.0",
|
|
44
|
+
"@rsbuild/plugin-typed-css-modules": "1.0.2",
|
|
45
|
+
"@rsbuild/plugin-yaml": "1.0.2",
|
|
46
|
+
"@rsbuild/webpack": "1.1.4",
|
|
47
47
|
"@swc/helpers": "0.5.13",
|
|
48
48
|
"autoprefixer": "10.4.20",
|
|
49
49
|
"babel-loader": "9.1.3",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"postcss-font-variant": "5.0.0",
|
|
64
64
|
"postcss-initial": "4.0.1",
|
|
65
65
|
"postcss-media-minmax": "5.0.0",
|
|
66
|
-
"postcss-nesting": "12.1.
|
|
66
|
+
"postcss-nesting": "12.1.5",
|
|
67
67
|
"postcss-page-break": "3.0.4",
|
|
68
68
|
"react-refresh": "^0.14.0",
|
|
69
69
|
"rspack-manifest-plugin": "5.0.2",
|
|
@@ -72,19 +72,19 @@
|
|
|
72
72
|
"ts-loader": "9.4.4",
|
|
73
73
|
"webpack": "^5.96.1",
|
|
74
74
|
"webpack-subresource-integrity": "5.1.0",
|
|
75
|
-
"@modern-js/
|
|
76
|
-
"@modern-js/
|
|
75
|
+
"@modern-js/babel-preset": "2.63.1",
|
|
76
|
+
"@modern-js/utils": "2.63.1"
|
|
77
77
|
},
|
|
78
78
|
"devDependencies": {
|
|
79
|
-
"@rsbuild/plugin-webpack-swc": "
|
|
79
|
+
"@rsbuild/plugin-webpack-swc": "1.0.9",
|
|
80
80
|
"@types/html-minifier-terser": "^7.0.2",
|
|
81
81
|
"@types/lodash": "^4.14.202",
|
|
82
82
|
"react": "^18.3.1",
|
|
83
83
|
"react-dom": "^18.3.1",
|
|
84
84
|
"terser": "^5.31.1",
|
|
85
85
|
"typescript": "^5.3.0",
|
|
86
|
-
"@scripts/vitest-config": "2.63.
|
|
87
|
-
"@scripts/build": "2.63.
|
|
86
|
+
"@scripts/vitest-config": "2.63.1",
|
|
87
|
+
"@scripts/build": "2.63.1"
|
|
88
88
|
},
|
|
89
89
|
"publishConfig": {
|
|
90
90
|
"access": "public",
|