Skip to content

Commit

Permalink
Update swc options to match latest swc version, fix bug where swc was…
Browse files Browse the repository at this point in the history
… emitting import assertions as `with` which node does not understand
  • Loading branch information
cspotcode committed Sep 14, 2023
1 parent b8a70ac commit a045c4e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/transpilers/swc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,9 @@ export function createSwcOptions(
},
keepClassNames,
experimental: {
keepImportAssertions: true,
},
keepImportAttributes: true,
emitAssertForImportAttributes: true,
} as swcTypes.JscConfig['experimental'],
},
};

Expand Down

0 comments on commit a045c4e

Please sign in to comment.