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
If you use resolveFully: true with e.g. --out-file-extension mjs CLI option, the compiled code will try to import relative files using a fixed *.js extension causing a ERR_MODULE_NOT_FOUND error
I want to make a PR fixing this, but I don't know if my solution is right within the swc context. It is okay if the compiled code use the extension provided by --out-file-extension flag for imports?
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 bug
If you use
resolveFully: true
with e.g.--out-file-extension mjs
CLI option, the compiled code will try to import relative files using a fixed*.js
extension causing aERR_MODULE_NOT_FOUND
errorInput code
No response
Config
Playground link (or link to the minimal reproduction)
https://github.com/savi2w/swc-repro-1
SWC Info output
No response
Expected behavior
I think the compiled code should use the provided value of
--out-file-extension
CLI option to import relative filesActual behavior
No response
Version
^0.4.0
Additional context
No response
The text was updated successfully, but these errors were encountered: