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•2y ago
Yes I can add this option but it will take a bit
This has been added 🎉
Use it like this
wise-white•2y ago
so that "bit" is not that long then?
adverse-sapphire•2y ago
Set in your
tsr.config.json:
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-apricotOP•2y ago
Thank you @Tanner Linsley. I have dreamed of exactly such a solution.
Have a nive day!