router-core/code-splitting
OfficialSplit route code for faster, leaner apps.
AuthorTanStack
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Automatically manage and optimize route code splitting to minimize initial bundle size while preserving fast, on-demand loading for TanStack Router apps.
Core Features & Use Cases
- Automatic code splitting with autoCodeSplitting, ensuring critical route code loads upfront while non-critical UI files are lazy-loaded.
- Support for .lazy.tsx, createLazyFileRoute, createLazyRoute, and getRouteApi for typed hooks in split files.
- Per-route override with codeSplitGroupings and programmatic split behavior for fine-grained control.
Quick Start
Configure automatic code splitting in your bundler and create a sample route using .lazy.tsx to demonstrate per-route grouping.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: router-core/code-splitting Download link: https://github.com/TanStack/router/archive/main.zip#router-core-code-splitting Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.