You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should expect TypeScript supporting ESM first then consider what we should follow. This should be covered in TypeScript 4.6 (ideally). microsoft/TypeScript#46452
If anyone has a better solution please let me know :)
node -r swc-register src/**/*.test.ts
works as expected if"type": "module"
is not present inpackage.json
, otherwise the script fails with:Adding
--experimental-specifier-resolution=node
fixes it but the fails with:Using node
v14.17.0
,.swcrc
:The text was updated successfully, but these errors were encountered: