uhteddy / svelte-bundle

CLI tool to easily bundle a .svelte file into a single .html file
3 stars 0 forks source link

Svelte 5 Support #1

Open uhteddy opened 2 hours ago

uhteddy commented 2 hours ago

Currently svelte-bundle is not equipped to handle Svelte 5. Meaning if a user attempts to build a svelte file that utilizes syntax from Svelte 5, such as runes, they will face an error causing svelte-bundle to exit.

uhteddy commented 2 hours ago

I'm not currently aware of any way to directly check the version being used in a svelte file so my idea would be to default to svelte 4 and allow a -sv <svelte-version> or --svelte-version <svelte-version> flag to be included.