TanStackT
TanStack9mo ago
2 replies
moderate-tomato

code splitting file based routing doesn't work for memory history?

1. i try to use autoCodeSplitting: true in vite, it turns out it doesn't work
2. i try to turn off autoCodeSplitting: false then suffix all route with .lazy.tsx, like from "features.tsx to features.lazy.tsx,still doesn't work
3. i try to make it into 2 files, from features.tsx tofeatures/index.tsx and features/index.lazy.tsx
4. i also try to use lazy component: lazy(() =>import("./index.lazy").then((mod) => ({ default: mod.BlogAds }))), still doesn't work

what's the problem?
"@tanstack/react-router": "^1.114.3"
Was this page helpful?