Skip to content

Removes scripts setting up custom elements #9

Open
@gorbak25

Description

@gorbak25

When minifying this component

---
---
<astro-test> </astro-test>
<script>
    class AstroTest extends HTMLElement {
        constructor() {
            super();
            alert("This should fire");
        }
    }
    customElements.define("astro-test", AstroTest)
</script>

This minifier removes the entire script from the final output. This example works fine in dev builds.

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