-
Notifications
You must be signed in to change notification settings - Fork 1
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
Also handle imports deep imports from libraries? #2
Comments
I think it's better to not modify the default package resolution behavior for the reasons mentioned below: Why deep imports can be a problem Deep imports for dual packages presents a problem for transpiling for dual-packages |
Yeah makes sense 👍 |
Have you considered using subpath imports instead? |
Was not aware of that. Good to know. But many of these imports are only done once, so a separate mapping isn't worth it. |
You might wanna give it a try with the latest version of the npm package. (: |
This might be my missing link to actually adopt ESM, so thank you for that.
I'm wondering if you think it's possible to also handle library imports. Something like
Adding the extension to that import fixes it.
Maybe that's harder though logically, because there's package.json
exports
to consider. Or some other complication with non-local code?The text was updated successfully, but these errors were encountered: