Skip to content

Import assertions with swc enabled #1810

Discussion options

You must be logged in to vote

Looks like you've found a bug, thanks for reporting. Not only do we need to specify importAssertions, but swc also requires experimental: {keepImportAssertions: true}

I'm guessing that's why this bug exists, because SWC didn't support this when we first added support.

I've created a bug to track #1817, and I already have a PR in progress to fix #1802. Thanks again for reporting this.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@leonitousconforti
Comment options

Answer selected by cspotcode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants