@modern-js/uni-builder 0.0.0-nightly-20240123170645 → 0.0.0-nightly-20240125170634
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/shared/plugins/fallback.js +5 -2
- package/package.json +25 -25
|
@@ -87,14 +87,17 @@ const pluginFallback = () => ({
|
|
|
87
87
|
} else {
|
|
88
88
|
api.modifyRspackConfig((config, { isProd }) => {
|
|
89
89
|
var _config_module;
|
|
90
|
+
var _config, _config1;
|
|
90
91
|
const rsbuildConfig = api.getNormalizedConfig();
|
|
91
92
|
const distDir = (0, import_shared.getDistPath)(rsbuildConfig, "media");
|
|
92
93
|
const filename = (0, import_shared.getFilename)(rsbuildConfig, "media", isProd);
|
|
93
|
-
(
|
|
94
|
+
(_config = config).output || (_config.output = {});
|
|
95
|
+
config.output.assetModuleFilename = (0, import_path.join)(distDir, filename);
|
|
94
96
|
if (!config.module) {
|
|
95
97
|
return;
|
|
96
98
|
}
|
|
97
|
-
(
|
|
99
|
+
(_config1 = config).module || (_config1.module = {});
|
|
100
|
+
config.module.rules = resourceRuleFallback((_config_module = config.module) === null || _config_module === void 0 ? void 0 : _config_module.rules);
|
|
98
101
|
});
|
|
99
102
|
}
|
|
100
103
|
}
|
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-20240125170634",
|
|
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.3.
|
|
30
|
-
"@rsbuild/core": "0.3.
|
|
31
|
-
"@rsbuild/plugin-assets-retry": "0.3.
|
|
32
|
-
"@rsbuild/plugin-babel": "0.3.
|
|
33
|
-
"@rsbuild/plugin-check-syntax": "0.3.
|
|
34
|
-
"@rsbuild/plugin-css-minimizer": "0.3.
|
|
35
|
-
"@rsbuild/plugin-pug": "0.3.
|
|
36
|
-
"@rsbuild/plugin-react": "0.3.
|
|
37
|
-
"@rsbuild/plugin-rem": "0.3.
|
|
38
|
-
"@rsbuild/plugin-source-build": "0.3.
|
|
39
|
-
"@rsbuild/plugin-styled-components": "0.3.
|
|
40
|
-
"@rsbuild/plugin-svgr": "0.3.
|
|
41
|
-
"@rsbuild/plugin-type-check": "0.3.
|
|
42
|
-
"@rsbuild/plugin-toml": "0.3.
|
|
43
|
-
"@rsbuild/plugin-yaml": "0.3.
|
|
44
|
-
"@rsbuild/shared": "0.3.
|
|
45
|
-
"@rsbuild/webpack": "0.3.
|
|
29
|
+
"@rsbuild/babel-preset": "0.3.7",
|
|
30
|
+
"@rsbuild/core": "0.3.7",
|
|
31
|
+
"@rsbuild/plugin-assets-retry": "0.3.7",
|
|
32
|
+
"@rsbuild/plugin-babel": "0.3.7",
|
|
33
|
+
"@rsbuild/plugin-check-syntax": "0.3.7",
|
|
34
|
+
"@rsbuild/plugin-css-minimizer": "0.3.7",
|
|
35
|
+
"@rsbuild/plugin-pug": "0.3.7",
|
|
36
|
+
"@rsbuild/plugin-react": "0.3.7",
|
|
37
|
+
"@rsbuild/plugin-rem": "0.3.7",
|
|
38
|
+
"@rsbuild/plugin-source-build": "0.3.7",
|
|
39
|
+
"@rsbuild/plugin-styled-components": "0.3.7",
|
|
40
|
+
"@rsbuild/plugin-svgr": "0.3.7",
|
|
41
|
+
"@rsbuild/plugin-type-check": "0.3.7",
|
|
42
|
+
"@rsbuild/plugin-toml": "0.3.7",
|
|
43
|
+
"@rsbuild/plugin-yaml": "0.3.7",
|
|
44
|
+
"@rsbuild/shared": "0.3.7",
|
|
45
|
+
"@rsbuild/webpack": "0.3.7",
|
|
46
46
|
"@swc/helpers": "0.5.3",
|
|
47
47
|
"babel-loader": "9.1.3",
|
|
48
48
|
"babel-plugin-import": "1.13.5",
|
|
@@ -64,19 +64,19 @@
|
|
|
64
64
|
"webpack": "^5.89.0",
|
|
65
65
|
"webpack-manifest-plugin": "5.0.0",
|
|
66
66
|
"webpack-subresource-integrity": "5.1.0",
|
|
67
|
-
"@modern-js/utils": "0.0.0-nightly-
|
|
68
|
-
"@modern-js/server": "0.0.0-nightly-
|
|
69
|
-
"@modern-js/
|
|
67
|
+
"@modern-js/utils": "0.0.0-nightly-20240125170634",
|
|
68
|
+
"@modern-js/prod-server": "0.0.0-nightly-20240125170634",
|
|
69
|
+
"@modern-js/server": "0.0.0-nightly-20240125170634"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
|
-
"@rsbuild/plugin-swc": "0.3.
|
|
72
|
+
"@rsbuild/plugin-swc": "0.3.7",
|
|
73
73
|
"@types/lodash": "^4.14.202",
|
|
74
74
|
"react": "^18.2.0",
|
|
75
75
|
"react-dom": "^18.2.0",
|
|
76
76
|
"typescript": "^5.3.0",
|
|
77
|
-
"@modern-js/builder-plugin-node-polyfill": "0.0.0-nightly-
|
|
78
|
-
"@scripts/build": "0.0.0-nightly-
|
|
79
|
-
"@scripts/vitest-config": "0.0.0-nightly-
|
|
77
|
+
"@modern-js/builder-plugin-node-polyfill": "0.0.0-nightly-20240125170634",
|
|
78
|
+
"@scripts/build": "0.0.0-nightly-20240125170634",
|
|
79
|
+
"@scripts/vitest-config": "0.0.0-nightly-20240125170634"
|
|
80
80
|
},
|
|
81
81
|
"publishConfig": {
|
|
82
82
|
"access": "public",
|