routeTree gen in JS
Hi all - for some reason i want to use router on JS project. But how to make the routeTree.gen generate a JS file instead of TS?
2 Replies
other-emerald•17mo ago
You can use the
disableTypes
option and have it output it into a .js
file.
https://tanstack.com/router/latest/docs/framework/react/guide/file-based-routing#optionsFile-Based Routes | TanStack Router React Docs
Most of the TanStack Router documentation is written for file-based routing. This guide is mostly intended to help you understand in more detail how to configure file-based routing and the technical details behind how it works.
Prerequisites
fascinating-indigoOP•17mo ago
thanks!!