-
-
Notifications
You must be signed in to change notification settings - Fork 736
Closed
Copy link
Labels
teamThe issue/pr is created by the member of Rspack.The issue/pr is created by the member of Rspack.
Description
System Info
@rspack/core v1.5.0-beta.0
Details
Prerequisites:
- Using
/* webpackPrefetch: true */in source code - Enabled
optimization.runtimeChunk
Result: Rspack sends an invalid prefetch request:
It appears that the webpack/runtime/chunk_prefetch_startup module was split into runtime.js, which caused this issue (starting from Rspack 1.5.0-beta.0).
- 1.4.15: https://github.com/chenjiahan/rspack-repro-prefetch-invalid-request/blob/main/dist-1.4.15/static/js/index.1cb825e3.js#L122-L128
- 1.5.0-beta.0: https://github.com/chenjiahan/rspack-repro-prefetch-invalid-request/blob/main/dist-1.5.0-beta.0/static/js/runtime.861ec614.js#L365-L371
Reproduce link
https://github.com/chenjiahan/rspack-repro-prefetch-invalid-request
Reproduce Steps
- pnpm i
- pnpm build
- pnpm preview
- visit the page, check the console
Metadata
Metadata
Assignees
Labels
teamThe issue/pr is created by the member of Rspack.The issue/pr is created by the member of Rspack.