@shuvi/platform-web 2.0.0-dev.8 → 2.0.0-dev.9
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.
|
@@ -224,7 +224,6 @@ class RspackBuildManifestPlugin {
|
|
|
224
224
|
})
|
|
225
225
|
.filter(Boolean);
|
|
226
226
|
if (rawRequests.length > 1) {
|
|
227
|
-
console.debug(`[Rspack] chunk="${chunk.name}" rawRequests length > 1: length=${rawRequests.length}`);
|
|
228
227
|
/**
|
|
229
228
|
* @rspack-diff
|
|
230
229
|
* @TODO workaround: because Rspack's behavior is different from webpack
|
|
@@ -238,7 +237,6 @@ class RspackBuildManifestPlugin {
|
|
|
238
237
|
if (sideEffectFreeModules.length) {
|
|
239
238
|
const rawRequest = sideEffectFreeModules[0]
|
|
240
239
|
.rawRequest;
|
|
241
|
-
console.debug(`[Rspack] chunk="${chunk.name}" try to pick sideEffectFreeModules="${rawRequest}"`);
|
|
242
240
|
if (rawRequest) {
|
|
243
241
|
return rawRequest;
|
|
244
242
|
}
|
|
@@ -7,7 +7,7 @@ exports.OnDemandRouteManager = void 0;
|
|
|
7
7
|
const service_1 = require("@shuvi/service");
|
|
8
8
|
const escapeRegExp_1 = require("@shuvi/utils/escapeRegExp");
|
|
9
9
|
const module_replace_plugin_1 = __importDefault(require("@shuvi/toolpack/lib/webpack/plugins/module-replace-plugin"));
|
|
10
|
-
const
|
|
10
|
+
const require_cache_hot_reloader_plugin_rspack_1 = __importDefault(require("@shuvi/toolpack/lib/webpack/plugins/require-cache-hot-reloader-plugin.rspack"));
|
|
11
11
|
const constants_1 = require("@shuvi/shared/constants");
|
|
12
12
|
const dumbRouteComponent = require.resolve('./emptyComponent');
|
|
13
13
|
const plugin = (0, service_1.createPlugin)({
|
|
@@ -27,7 +27,7 @@ const plugin = (0, service_1.createPlugin)({
|
|
|
27
27
|
// This is because the client compilation generates the build manifest that's used on the server side
|
|
28
28
|
config
|
|
29
29
|
.plugin('private/require-cache-hot-reloader')
|
|
30
|
-
.use(
|
|
30
|
+
.use(require_cache_hot_reloader_plugin_rspack_1.default);
|
|
31
31
|
}
|
|
32
32
|
return config;
|
|
33
33
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shuvi/platform-web",
|
|
3
|
-
"version": "2.0.0-dev.
|
|
3
|
+
"version": "2.0.0-dev.9",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/shuvijs/shuvi.git",
|
|
@@ -72,15 +72,15 @@
|
|
|
72
72
|
},
|
|
73
73
|
"dependencies": {
|
|
74
74
|
"@rspack/plugin-react-refresh": "^1.4.3",
|
|
75
|
-
"@shuvi/error-overlay": "2.0.0-dev.
|
|
76
|
-
"@shuvi/hook": "2.0.0-dev.
|
|
77
|
-
"@shuvi/platform-shared": "2.0.0-dev.
|
|
78
|
-
"@shuvi/router": "2.0.0-dev.
|
|
79
|
-
"@shuvi/router-react": "2.0.0-dev.
|
|
80
|
-
"@shuvi/runtime": "2.0.0-dev.
|
|
81
|
-
"@shuvi/shared": "2.0.0-dev.
|
|
82
|
-
"@shuvi/toolpack": "2.0.0-dev.
|
|
83
|
-
"@shuvi/utils": "2.0.0-dev.
|
|
75
|
+
"@shuvi/error-overlay": "2.0.0-dev.9",
|
|
76
|
+
"@shuvi/hook": "2.0.0-dev.9",
|
|
77
|
+
"@shuvi/platform-shared": "2.0.0-dev.9",
|
|
78
|
+
"@shuvi/router": "2.0.0-dev.9",
|
|
79
|
+
"@shuvi/router-react": "2.0.0-dev.9",
|
|
80
|
+
"@shuvi/runtime": "2.0.0-dev.9",
|
|
81
|
+
"@shuvi/shared": "2.0.0-dev.9",
|
|
82
|
+
"@shuvi/toolpack": "2.0.0-dev.9",
|
|
83
|
+
"@shuvi/utils": "2.0.0-dev.9",
|
|
84
84
|
"content-type": "1.0.4",
|
|
85
85
|
"core-js": "3.6.5",
|
|
86
86
|
"doura": "0.0.13",
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
"whatwg-fetch": "3.0.0"
|
|
99
99
|
},
|
|
100
100
|
"peerDependencies": {
|
|
101
|
-
"@shuvi/service": "2.0.0-dev.
|
|
101
|
+
"@shuvi/service": "2.0.0-dev.9"
|
|
102
102
|
},
|
|
103
103
|
"devDependencies": {
|
|
104
104
|
"@shuvi/service": "workspace:*",
|