Skip to content

Don't remove HTML comments by default #141

Description

@matthewp

Hi 👋, some users are reporting that astro-compress breaks server islands. It does this because server islands uses a comment to know where the start of the fallback content is. Removing that comment prevents it from hydrating properly.

Removing HTML comments is generally unsafe as many tools use them for these sorts of purposes (Solid.js does for example). Would you be willing to make this an opt-in feature? Thanks.

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