-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Open
Description
Which project does this relate to?
Router
Describe the bug
I forked the rspack example from the repository and reproduced the issue. On Windows, autoCodeSplitting doesn't seem to work properly.
I also tested with Vite, and autoCodeSplitting works normally on Windows in that environment.
This is almost identical to #2364, except I'm using rsbuild. I've also created a GitHub Action example following the same pattern - hope it might help.
related issue: #2167. Although it has been marked as fixed, are there still some issues remaining?
Your Example Website or App
https://github.com/json-q/reproduce-tanstack-rsbuild-code-splitting
Steps to Reproduce the Bug or Issue
- use repository with rspack example
- run
pnpm buildon Windows
In Github Action
Linux Output
File (web) Size Gzip
dist/static/js/async/71.ba88b980.js 0.35 kB 0.24 kB
dist/static/js/async/478.40e10a1a.js 0.36 kB 0.25 kB
dist/index.html 0.43 kB 0.26 kB
dist/static/js/index.df5ddaa1.js 3.9 kB 1.9 kB
dist/static/css/index.b98cee4f.css 7.7 kB 2.1 kB
dist/static/js/474.06473f22.js 78.7 kB 25.4 kB
dist/static/js/lib-react.2bce8fdf.js 189.9 kB 60.0 kB
Total: 281.3 kB 90.1 kBWindows Output
File (web) Size Gzip
dist\index.html 0.43 kB 0.27 kB
dist\static\js\index.4ba93d7a.js 2.3 kB 1.2 kB
dist\static\css\index.7d26e347.css 7.7 kB 2.1 kB
dist\static\js\909.fbf40b36.js 77.9 kB 25.1 kB
dist\static\js\lib-react.2bce8fdf.js 189.9 kB 60.0 kB
Total: 278.3 kB 88.6 kBExpected behavior
autoCodeSplitting works properly in rsbuild.
Screenshots or Videos
No response
Platform
- Router Version: 1.144.0
- OS: Windows
- Bundler: rsbuild
- Bundler Version: 1.6.15
Additional context
No response
Metadata
Metadata
Assignees
Labels
No labels