Skip to content

import assertions with swc transpiler #1817

Description

@cspotcode

swc transpiler needs to be passed necessary flags to preserve import assertions. Currently, it omits them from emit, which is wrong.

Must pass two flags:

{jsc: {parser: {importAssertions: true},experimental: {keepImportAssertions: true}}}

Reported in #1810.

Will be fixed by #1802

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions