Skip to content

Tracking: swc erroneously converts import assertions assert keyword to with #2051

@cspotcode

Description

@cspotcode

Tracking: swc-project/swc#7908

Once swc fixes this, we may need to require the newer version or pass a flag.

Converting to with might be correct in some situations, I'm not an expert on the spec changes. But I know that for our purposes on node, we need to keep the assert.

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