sajad torkamani

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., .eslintignore or .prettierignore).
  • Configure your editor / IDE to exclude this file from search results.