Skip to content

Render component without adding JavaScript code #15265

@probablykasper

Description

@probablykasper

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions