-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
TanStack Router adds 29KB instead of 12KB to the bundle #7090
Copy link
Copy link
Open
Description
Which project does this relate to?
Router
Describe the bug
I created a Vite + SolidJS + TanStack Router app and was expecting 12KB for an almost empty web app but it added 29KB to it. Is this a bug or did the TanStack Router bundle increase by more than 100% over the last months? If that is the cases it is probably no longer "Lightweight".
Website:
Vite + SolidJS:
vite v8.0.3 building client environment for production...
✓ 12 modules transformed.
computing gzip size...
dist/index.html 0.46 kB │ gzip: 0.29 kB
dist/assets/vite-BF8QNONU.svg 8.70 kB │ gzip: 1.60 kB
dist/assets/hero-5sT3BiRD.png 44.91 kB
dist/assets/index-DykytF2W.css 4.10 kB │ gzip: 1.47 kB
dist/assets/index-DbBVHp2z.js 16.04 kB │ gzip: 6.09 kB
✓ built in 580ms
Vite + SolidJS + TanStack Router:
vite v8.0.3 building client environment for production...
✓ 92 modules transformed.
computing gzip size...
dist/index.html 0.45 kB │ gzip: 0.28 kB
dist/assets/index-9lpGihRV.css 11.90 kB │ gzip: 3.27 kB
dist/assets/about-CPZOf6_P.js 0.59 kB │ gzip: 0.40 kB
dist/assets/routes-CZaK90oP.js 2.83 kB │ gzip: 1.37 kB
dist/assets/index-Ds7sFwGP.js 107.91 kB │ gzip: 35.35 kB
✓ built in 542ms
Your Example Website or App
https://stackblitz.com/edit/vitejs-vite-wgefec7z
Steps to Reproduce the Bug or Issue
- Use the StackBlitz link or
npx @tanstack/cli create --router-only --framework solid npm run build
Expected behavior
It should only add 12KB to the final bundle
Screenshots or Videos
No response
Platform
- Router Version: 1.168.9
- OS: macOS
- Bundler: Vite
- Bundler Version: 8.0.1
Additional context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels