@shuvi/platform-web 2.0.0-dev.7 → 2.0.0-dev.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.
@@ -224,6 +224,7 @@ 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}`);
227
228
  /**
228
229
  * @rspack-diff
229
230
  * @TODO workaround: because Rspack's behavior is different from webpack
@@ -237,6 +238,7 @@ class RspackBuildManifestPlugin {
237
238
  if (sideEffectFreeModules.length) {
238
239
  const rawRequest = sideEffectFreeModules[0]
239
240
  .rawRequest;
241
+ console.debug(`[Rspack] chunk="${chunk.name}" try to pick sideEffectFreeModules="${rawRequest}"`);
240
242
  if (rawRequest) {
241
243
  return rawRequest;
242
244
  }
@@ -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 require_cache_hot_reloader_plugin_rspack_1 = __importDefault(require("@shuvi/toolpack/lib/webpack/plugins/require-cache-hot-reloader-plugin.rspack"));
10
+ const require_cache_hot_reloader_plugin_1 = __importDefault(require("@shuvi/toolpack/lib/webpack/plugins/require-cache-hot-reloader-plugin"));
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(require_cache_hot_reloader_plugin_rspack_1.default);
30
+ .use(require_cache_hot_reloader_plugin_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.7",
3
+ "version": "2.0.0-dev.8",
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.7",
76
- "@shuvi/hook": "2.0.0-dev.7",
77
- "@shuvi/platform-shared": "2.0.0-dev.7",
78
- "@shuvi/router": "2.0.0-dev.7",
79
- "@shuvi/router-react": "2.0.0-dev.7",
80
- "@shuvi/runtime": "2.0.0-dev.7",
81
- "@shuvi/shared": "2.0.0-dev.7",
82
- "@shuvi/toolpack": "2.0.0-dev.7",
83
- "@shuvi/utils": "2.0.0-dev.7",
75
+ "@shuvi/error-overlay": "2.0.0-dev.8",
76
+ "@shuvi/hook": "2.0.0-dev.8",
77
+ "@shuvi/platform-shared": "2.0.0-dev.8",
78
+ "@shuvi/router": "2.0.0-dev.8",
79
+ "@shuvi/router-react": "2.0.0-dev.8",
80
+ "@shuvi/runtime": "2.0.0-dev.8",
81
+ "@shuvi/shared": "2.0.0-dev.8",
82
+ "@shuvi/toolpack": "2.0.0-dev.8",
83
+ "@shuvi/utils": "2.0.0-dev.8",
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.7"
101
+ "@shuvi/service": "2.0.0-dev.8"
102
102
  },
103
103
  "devDependencies": {
104
104
  "@shuvi/service": "workspace:*",