T
TanStack2y ago
robust-apricot

router-vite-plugin in a JavaScript-project

Hey 👋🏽 @Tanner Linsley @Manuel Schiller, tanstack router is fantastic! thanks! I want to use the @tanstack/router-vite-plugin, but the project is JavaScript. Is it planned to add an option to the plugin, or the cli to create JavaScript-code instead of TypeScript? At the moment I have to convert the TypeScript code into JS in another way. Thanks for a response
4 Replies
adverse-sapphire
adverse-sapphire2y ago
Yes I can add this option but it will take a bit This has been added 🎉 Use it like this
wise-white
wise-white2y ago
so that "bit" is not that long then?
adverse-sapphire
adverse-sapphire2y ago
Set in your tsr.config.json:
{
"disableTypes": true
}
{
"disableTypes": true
}
That'll disable the typescript output in the generated file and also make sure the file is named with a .js extension Enjoi! @wuarmin 👆
robust-apricot
robust-apricotOP2y ago
Thank you @Tanner Linsley. I have dreamed of exactly such a solution. Have a nive day!

Did you find this page helpful?