Skip to content

import assertions with swc transpiler #1817

Closed
@cspotcode

Description

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

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