DEV Community

Discussion on: When to use Svelte vs SvelteKit vs Sapper?

Collapse
 
danawoodman profile image
Dana Woodman

Next us a great tool, esp if you want to work with React.

You likely had what is (now) a common issue with CommonJS packages, because Vite focuses on ESM (the future). This will likely be resolved soonish. Check the SvelteKit FAQ for the solution 👍

What is the issue with import.meta.env? You can use dotenv too if you want.

I'll wager in a few months most the SvelteKit issues will be in the past.

PS, Vite reloading is faster than Next because of ESM, but Sapper is def slower

Collapse
 
souksyp profile image
Souk Syp. • Edited

No offence I love Svelte as you do (I imagine)