Skip to content

Should routeTree.gen.ts be gitignored? #1218

Answered by SeanCassiere
pSnehanshu asked this question in Q&A
Discussion options

You must be logged in to vote

If you are using router-cli you could probably gitignore the file and generate it priot to a build.

This changes however if you are using the vite-plugin, since the default vite-build script has you run tsc before the build. In this scenario, your build would never get past the tsc check.

IMHO: I just check-in the file (routeTree.gen.ts) in git, because I can't be bothered solving the vite-build script.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@gual
Comment options

Answer selected by SeanCassiere
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants