routeTree.gen.ts
17 July 2026 (Updated 17 July 2026)
On this page
What is this file?
When you use the @tanstack/router-plugin as a Vite plugin and run npm run dev , the plugin will will watch your routes/ directory and generate a route tree file at src/routeTree.gen.ts whenever you add/edit files in the routes/ directory.
Additional tips
- If using tools like ESLint or Prettier, you’ll want to add this file to the relevant ignore files (e.g.,
.eslintignoreor.prettierignore). - Configure your editor / IDE to exclude this file from search results.
Tagged:
TanStack Router