solidjs/templates

Is vite required?

Opened this issue · 1 comments

Hi,

I checked all the typescript templates, all of them have a vite.config.ts file, I'm curious to know if vite is required to run?

What if I use tsc to compile and load the generated js file to html?

All these templates are built on Vite. This gives the benefit of bundling. TS only transforms to JS. Which would need an additional step of transforming our JSX using Babel as well. It's doable, but this basically what Vite does. And gives you access to their whole ecosystem of plugins.

You don't have to use Vite to use Solid, but all our starter templates do.