Open curran opened 2 weeks ago
Worth tracking if the Svelte REPL gets Svelte 5 support
https://svelte.dev/repl/hello-world?version=4.2.19
Looks like not yet. When they do work on that, we can probably do the same in VizHub.
There's a Svelte 5 REPL here: https://svelte-5-preview.vercel.app Code seems to be here: https://github.com/sveltejs/svelte/tree/main/sites/svelte-5-preview
Oh amazing! That's extremely helpful. Thank you for sharing that!
I think I found it!
It's really nice that this is already done as a self-contained Web Worker. There's a real possibility we could just copy in that entire Web Worker implementation into the VizHub codebase and use it as-is, replacing the old Svelte implementation.
Do you have time to implement it in the next days? I'm not feeling very confident to change the VizHub code. 😬 And it would be great to use Svelte 5 for courses right away.
No, I don't think I'll be able to do this in the next few days. There is a slight chance, but I have a lot going on at the moment.
If anyone else wants to take a stab at it, that possibility is open! I can support a developer to get the env up and running via the VizHub Discord. If anyone picks this up, feel free to ping me in Discord. Cheers!
Currently VizHub support Svelte 4.
It should support Svelte 5 which is way better, and is now stable.
This would be a good place to start:
https://github.com/vizhub-core/vizhub/blob/main/runtime/src/v3Runtime/transformSvelte.ts