portabletext / svelte-portabletext

Transform Portable Text content into Svelte components
svelte-portabletext.sanity.build
MIT License
64 stars 19 forks source link

Start support for Svelte 5 #78

Open nuotsu opened 10 months ago

nuotsu commented 10 months ago

Has there been any progress made to support Svelte 5?

dennisregalado commented 9 months ago

wondering the same thing!

kiosion commented 8 months ago

Did some testing the other day and got it working with 5.0.0-next.53 with some minor changes - using $props() syntax, moving reactive statements to $state()/$derived() & $effect() blocks

Edit: Misread this. In terms of changes for Svelte 5 compat, not using Svelte 5 here, I patched the latest version in my project w/ PNPM, adding <svelte:options preserveWhitespace={true} /> to each .svelte file, which fixed the ERR_SVELTE_HYDRATION_MISMATCH errors I was getting... it seems to work as-is otherwise

owzzz commented 3 months ago

It would be great to resolve this. Is there any news on supporting Svelte 5 yet?

ishanloya commented 5 days ago

Svelte 5 is officially out now. Would be great for it to be supported.