Skip to content

Doesn't work with minify: false #72

@rcoopr

Description

@rcoopr

The following regex matches both cases - minified and not - however I have only tested it for a couple of individual use cases

/(\s*<script type="module" crossorigin>\s*)\(function[\s\S]*?\}\)\(\);/

The removed segment is \(\)\{ after function - when not minified, the polyfill is a named function

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions