@shuvi/platform-web 2.0.0-dev.6 → 2.0.0-dev.7

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 require_cache_hot_reloader_plugin_1 = __importDefault(require("@shuvi/toolpack/lib/webpack/plugins/require-cache-hot-reloader-plugin"));
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(require_cache_hot_reloader_plugin_1.default);
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.6",
3
+ "version": "2.0.0-dev.7",
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.6",
76
- "@shuvi/hook": "2.0.0-dev.6",
77
- "@shuvi/platform-shared": "2.0.0-dev.6",
78
- "@shuvi/router": "2.0.0-dev.6",
79
- "@shuvi/router-react": "2.0.0-dev.6",
80
- "@shuvi/runtime": "2.0.0-dev.6",
81
- "@shuvi/shared": "2.0.0-dev.6",
82
- "@shuvi/toolpack": "2.0.0-dev.6",
83
- "@shuvi/utils": "2.0.0-dev.6",
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",
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.6"
101
+ "@shuvi/service": "2.0.0-dev.7"
102
102
  },
103
103
  "devDependencies": {
104
104
  "@shuvi/service": "workspace:*",