Skip to content

Inline scripts with type attribute don't minify #52

@teddybradford

Description

@teddybradford

Initial checklist

Affected package

[email protected]

Steps to reproduce

If a script tag has type attribute it doesn't seem to get minified.

<script type="module">
        console.log('hello, world');

        console.log('hello, world');
</script>

<script>
        console.log('hello, world');

        console.log('hello, world');
</script>

Actual behavior

<script type="module">
        console.log('hello, world');

        console.log('hello, world');
</script>

<script>console.log("hello, world"),console.log("hello, world")</script>

Expected behavior

<script type="module">console.log("hello, world"),console.log("hello, world")</script>

<script>console.log("hello, world"),console.log("hello, world")</script>

Runtime

No response

Package manager

No response

Operating system

No response

Build and bundle tools

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    🤞 phase/openPost is being triaged manually

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions