-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Build-in support to create aliases to import or require modules would be very helpful #2191
Comments
Yes, I agree. However, esbuild actually does support |
@evanw Interesting, but I'm not sure I fully understand. I would prefer to just rely use the build-in features but noticed, that esbuild did automatically resolve the TypeScript modules but not the css modules. Is this this the expected behavior or should also the css modules be resolved? Please also note, that I created a separate SR #2192 that specifically focuses on the module resolution when chaining plugins. Thank you for your awesome work. |
I also noticed that for example the |
It it supported only when bundling? |
I just saw this mentioned in the latest release notes. @evanw How is it different from / advantageous over supporting standard import maps? |
I currently evaluating the migration of a very very lange and complex webpack configuration to esbuild.
I have found some esbuild plugins but was not able to get things working and believe that build-in support for aliases similar to resolve.alias in webpack or paths in TypeScript would be a very helpful addition.
The text was updated successfully, but these errors were encountered: