Replies: 2 comments 8 replies
-
same question here |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
👋 Hey! I got a Node.JS + TypeScript project that I would like to transpile with SWC. My goal is to make the output an ES6 module.
The issue is that I am not able to import files or directories without explicitly specifying .js/index.js like commonjs or with tsc.
Example code:
I would expect this to automatically suffix
.js
or/index.js
(if it's a directory), like:In the current state, the transpiled code would emit the following errors:
Here is my current
.swcrc
:Beta Was this translation helpful? Give feedback.
All reactions