According to the node.js release notes for node 20.6 the experimental loaders API was deprecated in favour of the register API.
Because of that, we need to use node --import register.js file.ts instead of node --loader @swc-node/register/esm file.ts.
I've opened an issue to follow up on this topic
swc-project/swc-node#743
According to the node.js release notes for node 20.6 the
experimental loadersAPI was deprecated in favour of theregisterAPI.Because of that, we need to use
node --import register.js file.tsinstead ofnode --loader @swc-node/register/esm file.ts.I've opened an issue to follow up on this topic
swc-project/swc-node#743