vizhub-core / vizhub

VizHub Platform V3
12 stars 1 forks source link

Support Svelte 5 #1041

Open curran opened 2 weeks ago

curran commented 2 weeks ago

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

curran commented 2 weeks ago

https://www.reddit.com/r/sveltejs/comments/1g7d3a7/svelte_5_officially_released/

curran commented 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.

higsch commented 2 weeks ago

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

curran commented 1 week ago

Oh amazing! That's extremely helpful. Thank you for sharing that!

curran commented 1 week ago

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.

higsch commented 1 week ago

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.

curran commented 1 week ago

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!