DEV Community

loading...

Discussion on: Is Vite currently the best bundler for Svelte?

Collapse
annietaylorchen profile image
Annie Taylor Chen

I remember the first time I use webpack for react (before using CRA) it was such a pain to set things up and make them work properly. Maybe I was just too green. Later I basically use CRA to make things easier so I can focus on things that's more important and fun to me.

Why do you think Vite is BETTER than the current default svelte boilerplate? So far I find everything works fast enough. Or am I too green to have lower standard?! lol

Collapse
codechips profile image
Ilia Mikhailov Author

When your app is small, it's not really a problem. But as it grows larger, the re-compilation will take longer because default boilerplate uses Rollup, which recompiles everything when you change one file. In most cases, default boilerplate is good enough. It's simple and does its job well. You should always use whatever makes you happy and productive. It's a personal choice, but it's always good to have a few options to choose from :)

Collapse
annietaylorchen profile image
Annie Taylor Chen

Right. When app grows larger and speed becomes slower, we have to change certain tools, so it's good to have options. I hope one day I can get to work at Svelte production site that would require this haha!