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
When using the resolveFully: true flag regular .js file imports/exports get their file extensions added in the transpiled code and it would be cool if this could be extended to files imported with the .jsx file extension.
Current Behaviour
Using this command: swc ./src -d ./lib --strip-leading-paths
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
Describe the feature
When using the
resolveFully: true
flag regular.js
file imports/exports get their file extensions added in the transpiled code and it would be cool if this could be extended to files imported with the.jsx
file extension.Current Behaviour
Using this command:
swc ./src -d ./lib --strip-leading-paths
And these files:
.swcrc
src/button.jsx
src/greet.js
src/index.js
Outputs:
Where index.js contains
Desired Behaviour
Imports for files that were originally had a
.jsx
extension should resolve to full imports/exports with a.js
extension.Related issues
.js
extensions to produce valid ESM import/export paths #8742Babel plugin or link to the feature description
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: