Skip to content
public-library›Rules›TanStack Router›Split route components out of the main bundle

Split route components out of the main bundle

Load each route's components only when that route is visited. Prefer the router plugin's automatic code splitting; use .lazy.tsx files when you need manual control.

In the full rule