-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing Svelte 5 support #8
Comments
I haven't looked into the Svelte 5 generated server JS output, but I suspect it has breaking changes. |
What parts in svelte-email-tailwind is related to the breaking changes in Svelte 5? The error originates from:
I am not sure why this error occurs or what the code is doing. The |
This Vite plugin takes an email component's SSR code as a string, and manipulates the string. It looks for all 'class' properties, transforms those classes to styles, then put them back into the original stringified SSR code as a 'style' prop. In Svelte 4, it would look something like this: In Svelte 5, the SSR JS output is different: If we're lucky, the only syntax change is that '$$result' becomes '$$payload'. But I doubt that's all - I have to look into it. PS: You can find these outputs on the Svelte REPL: in the JS "Output tab", with "Compiler options - generate" set to "SSR". |
Interesting approach! Hope your migration to Svelte 5 goes well. |
I'd love Svelte 5 support! |
Invite.svelte
I have been using it like this
However, I receive the following error in Svelte 5. Is there anything I can do to fix this?
Also the config require parameters
The text was updated successfully, but these errors were encountered: