@modern-js/uni-builder 0.0.0-nightly-20231214170701 → 0.0.0-nightly-20231216170634
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/defaults.js +2 -2
- package/dist/webpack/defaults.js +2 -2
- package/dist/webpack/index.js +1 -1
- package/package.json +19 -19
package/dist/rspack/defaults.js
CHANGED
|
@@ -23,7 +23,7 @@ __export(defaults_exports, {
|
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(defaults_exports);
|
|
25
25
|
var import_defaults = require("../shared/defaults");
|
|
26
|
-
var
|
|
26
|
+
var import_core = require("@rsbuild/core");
|
|
27
27
|
const createDefaultConfig = () => ({
|
|
28
28
|
dev: (0, import_defaults.getDefaultDevConfig)(),
|
|
29
29
|
html: (0, import_defaults.getDefaultHtmlConfig)(),
|
|
@@ -34,7 +34,7 @@ const createDefaultConfig = () => ({
|
|
|
34
34
|
performance: (0, import_defaults.getDefaultPerformanceConfig)(),
|
|
35
35
|
experiments: (0, import_defaults.getDefaultExperimentsConfig)()
|
|
36
36
|
});
|
|
37
|
-
const withDefaultConfig = (config) => (0,
|
|
37
|
+
const withDefaultConfig = (config) => (0, import_core.mergeRsbuildConfig)(createDefaultConfig(), config);
|
|
38
38
|
// Annotate the CommonJS export names for ESM import in node:
|
|
39
39
|
0 && (module.exports = {
|
|
40
40
|
createDefaultConfig,
|
package/dist/webpack/defaults.js
CHANGED
|
@@ -23,7 +23,7 @@ __export(defaults_exports, {
|
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(defaults_exports);
|
|
25
25
|
var import_defaults = require("../shared/defaults");
|
|
26
|
-
var
|
|
26
|
+
var import_core = require("@rsbuild/core");
|
|
27
27
|
const createDefaultConfig = () => ({
|
|
28
28
|
dev: (0, import_defaults.getDefaultDevConfig)(),
|
|
29
29
|
html: (0, import_defaults.getDefaultHtmlConfig)(),
|
|
@@ -46,7 +46,7 @@ const createDefaultConfig = () => ({
|
|
|
46
46
|
},
|
|
47
47
|
performance: (0, import_defaults.getDefaultPerformanceConfig)()
|
|
48
48
|
});
|
|
49
|
-
const withDefaultConfig = (config) => (0,
|
|
49
|
+
const withDefaultConfig = (config) => (0, import_core.mergeRsbuildConfig)(createDefaultConfig(), config);
|
|
50
50
|
// Annotate the CommonJS export names for ESM import in node:
|
|
51
51
|
0 && (module.exports = {
|
|
52
52
|
createDefaultConfig,
|
package/dist/webpack/index.js
CHANGED
|
@@ -75,9 +75,9 @@ async function createWebpackBuilder(options) {
|
|
|
75
75
|
const { cwd = process.cwd() } = options;
|
|
76
76
|
const { rsbuildConfig, rsbuildPlugins } = await parseConfig((0, import_defaults.withDefaultConfig)(options.config), cwd, options.frameworkConfigPath);
|
|
77
77
|
const { webpackProvider } = await Promise.resolve().then(() => __toESM(require("@rsbuild/webpack")));
|
|
78
|
+
rsbuildConfig.provider = webpackProvider;
|
|
78
79
|
const rsbuild = await (0, import_core.createRsbuild)({
|
|
79
80
|
rsbuildConfig,
|
|
80
|
-
provider: webpackProvider,
|
|
81
81
|
cwd
|
|
82
82
|
});
|
|
83
83
|
rsbuild.addPlugins([
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@modern-js/uni-builder",
|
|
3
|
-
"version": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20231216170634",
|
|
4
4
|
"description": "Unified builder for Modern.js",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -25,21 +25,21 @@
|
|
|
25
25
|
"@babel/preset-react": "^7.22.15",
|
|
26
26
|
"@babel/types": "^7.23.0",
|
|
27
27
|
"@pmmmwh/react-refresh-webpack-plugin": "0.5.10",
|
|
28
|
-
"@rsbuild/babel-preset": "0.2.
|
|
29
|
-
"@rsbuild/core": "0.2.
|
|
30
|
-
"@rsbuild/plugin-assets-retry": "0.2.
|
|
31
|
-
"@rsbuild/plugin-babel": "0.2.
|
|
32
|
-
"@rsbuild/plugin-check-syntax": "0.2.
|
|
33
|
-
"@rsbuild/plugin-css-minimizer": "0.2.
|
|
34
|
-
"@rsbuild/plugin-pug": "0.2.
|
|
35
|
-
"@rsbuild/plugin-react": "0.2.
|
|
36
|
-
"@rsbuild/plugin-rem": "0.2.
|
|
37
|
-
"@rsbuild/plugin-source-build": "0.2.
|
|
38
|
-
"@rsbuild/plugin-styled-components": "0.2.
|
|
39
|
-
"@rsbuild/plugin-svgr": "0.2.
|
|
40
|
-
"@rsbuild/plugin-type-check": "0.2.
|
|
41
|
-
"@rsbuild/shared": "0.2.
|
|
42
|
-
"@rsbuild/webpack": "0.2.
|
|
28
|
+
"@rsbuild/babel-preset": "0.2.4",
|
|
29
|
+
"@rsbuild/core": "0.2.4",
|
|
30
|
+
"@rsbuild/plugin-assets-retry": "0.2.4",
|
|
31
|
+
"@rsbuild/plugin-babel": "0.2.4",
|
|
32
|
+
"@rsbuild/plugin-check-syntax": "0.2.4",
|
|
33
|
+
"@rsbuild/plugin-css-minimizer": "0.2.4",
|
|
34
|
+
"@rsbuild/plugin-pug": "0.2.4",
|
|
35
|
+
"@rsbuild/plugin-react": "0.2.4",
|
|
36
|
+
"@rsbuild/plugin-rem": "0.2.4",
|
|
37
|
+
"@rsbuild/plugin-source-build": "0.2.4",
|
|
38
|
+
"@rsbuild/plugin-styled-components": "0.2.4",
|
|
39
|
+
"@rsbuild/plugin-svgr": "0.2.4",
|
|
40
|
+
"@rsbuild/plugin-type-check": "0.2.4",
|
|
41
|
+
"@rsbuild/shared": "0.2.4",
|
|
42
|
+
"@rsbuild/webpack": "0.2.4",
|
|
43
43
|
"@swc/helpers": "0.5.3",
|
|
44
44
|
"babel-loader": "9.1.3",
|
|
45
45
|
"babel-plugin-import": "1.13.5",
|
|
@@ -61,13 +61,13 @@
|
|
|
61
61
|
"webpack-subresource-integrity": "5.1.0"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
|
-
"@rsbuild/plugin-swc": "0.2.
|
|
64
|
+
"@rsbuild/plugin-swc": "0.2.4",
|
|
65
65
|
"@types/lodash": "^4.14.202",
|
|
66
66
|
"react": "^18.2.0",
|
|
67
67
|
"react-dom": "^18.2.0",
|
|
68
68
|
"typescript": "^5.3.0",
|
|
69
|
-
"@scripts/build": "0.0.0-nightly-
|
|
70
|
-
"@scripts/vitest-config": "0.0.0-nightly-
|
|
69
|
+
"@scripts/build": "0.0.0-nightly-20231216170634",
|
|
70
|
+
"@scripts/vitest-config": "0.0.0-nightly-20231216170634"
|
|
71
71
|
},
|
|
72
72
|
"publishConfig": {
|
|
73
73
|
"access": "public",
|