Skip to content
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

Render component without adding JavaScript code #15265

Open
probablykasper opened this issue Feb 11, 2025 · 1 comment
Open

Render component without adding JavaScript code #15265

probablykasper opened this issue Feb 11, 2025 · 1 comment

Comments

@probablykasper
Copy link

Describe the problem

I use the render function from svelte/server to generate email HTML (with the help of https://github.com/steveninety/svelte-email-tailwind). But I'm seeing it's adding these attributes in a few places: onload="this.__e=event" onerror="this.__e=event"

Example component where this happens: https://github.com/steveninety/svelte-email-tailwind/blob/3c1103182377b0f64221b9307d4865610e15dbf9/src/lib/components/Img.svelte

Describe the proposed solution

Add an option that avoids adding extra attributes like these. I assume these attributes are hydration-related, so hydratable: false?

Importance

would make my life easier

@dummdidumm
Copy link
Member

Related #14120

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants