-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature]: extensionAlias support #15354
Comments
AlternativeHey @sibelius ! 👋 Long time no see, hope everything's good with you. Considering that part of the TypeScript 5.7+ ecosystem is moving to fully-specified import specifiers with I wrote a bit in a similar issue over here: |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 30 days. |
This issue was closed because it has been stalled for 30 days with no activity. Please open a new issue if the issue is still relevant, linking to this one. |
This issue was closed because it has been stalled for 30 days with no activity. Please open a new issue if the issue is still relevant, linking to this one. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
🚀 Feature Proposal
Similar to webpack/rpsack extensionAlias
https://webpack.js.org/configuration/resolve/#resolveextensionalias
webpack/webpack#13252 (comment)
Be able to resolve
import "myFile.js"
tomyFile.ts
, to enable ESMMotivation
ESM requires file extensions, so we need to import using
.js
, but this breaks jest that it is looking for.ts
file insteadExample
import "myFile.js"
tomyFile.ts
, to enable ESMPitch
solve another ESM problem and make module resolution faster
The text was updated successfully, but these errors were encountered: