-
Notifications
You must be signed in to change notification settings - Fork 12k
esbuild support exports/imports resolution in package.json for type: module #24425
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
Comments
Can you provide an example and/or a minimal reproduction demonstrating the problem you are encountering? The Angular framework packages extensively use the package |
I am trying to use the self reference capabilities of exports/imports ( |
Can you provide a code example of what is being attempted to assist in replicating and troubleshooting the issue? If you are attempting to import a |
Looks like I was running into this issue: webpack/enhanced-resolve#355 Now that i've applied my own fix, it works. (both webpack and esbuild) |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Command
build
Description
Would it be possible to support the resolution of exports/imports (sub)paths for type: module (https://nodejs.org/api/packages.html)
The only supported "custom" paths are currently through tsconfig. I am aware of the builtin support in esbuild for exports defined in package.json, but I reckon something isn't passed along to esbuild because it doesn't work for the builder.
Describe the solution you'd like
No response
Describe alternatives you've considered
No response
The text was updated successfully, but these errors were encountered: