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
Similar to this webpack bug, swcpack aka spack doesn't match the behavior and semantics of TypeScript when importing using a fully-specified path with a .js extension.
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
Similar to this
webpack
bug,swcpack
akaspack
doesn't match the behavior and semantics of TypeScript when importing using a fully-specified path with a.js
extension.Eg. the following fails:
But does not fail when building with TSC.
Full repo with failing
build
script: https://github.com/karlhorky/swcpack-esm-fully-specified-demoInput code
No response
Config
No response
Playground link
No response
Expected behavior
swcpack
should match the semantics of TSC and TypeScript, and allow for fully-specified import paths with.js
extensions for ESM.See @RyanCavanaugh's comment here: microsoft/TypeScript#41887 (comment)
Version
@swc/[email protected], @swc/[email protected]
Additional context
No response
The text was updated successfully, but these errors were encountered: