-
Notifications
You must be signed in to change notification settings - Fork 469
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 Request]: Support extensionAlias field #2257
Comments
@patricklafrance I just found this issue while trying to migrate from Webpack. Has it been really implemented and released? My configuration gets rejected with the following: configuration.resolve has an unknown property 'extensionAlias' |
@jraoult it has not been implementend. I closed the issue because it’s not necessary anymore with TS 5 offering the allowImportingTsExtensions configuration field. |
@patricklafrance thx for your reply. In my case, Would you reconsider the decision not to implement it? |
Hey @jraoult I initally created an issue because I thought it was required to support ESM+TS+Webpack but I am not a maintainer nor a contributor of Since this one is closed and your use case is different, I would recommend creating a new issue. |
@patricklafrance, my bad. Somehow I assumed you were one of the maintainers 😀. I'll create a new request then. |
What problem does this feature solve?
As mentionned in the following discussion and issue, to use Wepack (now rspack) with an ESM + TypeScript setup, the bundlers should support file extensions aliases to enable the following syntax:
As ESM is getting quite popular it would be great to have support for extensionAlias sooner than later 🙏🏻
TypeScript 5.0 comes with a "bundler mode" module resolution which should fix the issue but it would still be useful for organization which cannot move to TS 5.0.
Thank you
What does the proposed API of configuration look like?
Same as Webpack https://webpack.js.org/configuration/resolve/#resolveextensionalias
The text was updated successfully, but these errors were encountered: