TypeStrong / ts-node

TypeScript execution and REPL for node.js
https://typestrong.org/ts-node
MIT License
12.86k stars 536 forks source link

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

Closed cspotcode closed 1 year ago

cspotcode commented 1 year ago

Tracking: https://github.com/swc-project/swc/issues/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.

MadCcc commented 1 year ago

Is there anyway to override swc configuration in ts-node? It is broken after swc released 1.3.83 image

cspotcode commented 1 year ago

Linking: https://github.com/swc-project/swc/issues/7928 https://github.com/TypeStrong/ts-node/issues/2056