Closed
Description
Which project does this relate to?
Router
Describe the bug
On vite + windows, the latest version of tanstack router doesn't split code component automatically when building.
This happens only on vite with windows. when testing on a linux machine, the splitting works correctly.
images for windows and linux builds for the same test repo
Your Example Website or App
https://stackblitz.com/~/github.com/kad5/test-ts-code-splitting
Steps to Reproduce the Bug or Issue
- on Windows run "npx create-tsrouter-app@latest my-app --template file-router"
- add some dummy routes
- npm run build
Expected behavior
previous to the latest update, the chunks were correctly produced. Currently I have another repo that has:
"@tanstack/react-router": "^1.115.2",
"@tanstack/router-plugin": "^1.115.2",
"vite": "^6.2.0"
and it works on windows but the current version 1.121.2 doesn't split on windows with vite 6.
Screenshots or Videos
No response
Platform
- OS: Windows
Additional context
there was an old issue from 2024 that is similar to this
#2167
Metadata
Metadata
Assignees
Labels
No labels