-
Notifications
You must be signed in to change notification settings - Fork 187
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
Order of keys in exports field matters to the resolved path #433
Comments
You need to set |
If you can create reproducible test repo I can look deeply |
@alexander-akait Thank you for the quick reply! But I don't think that this is the way. The |
Sorry for the delay, I studied the documentation and I will say that such behavior is expected, your
https://nodejs.org/api/packages.html#conditional-exports Even in the node documentation the Feel free to feedback |
Using version 5.17.0
Hi guys!
I have an issue with resolving the path to one of our dependencies and have narrowed it down to that enhanced-resolve does not handle the
exports
field in package.json of said dependency. The path is resolved to therequire
path and not theimport
path when import is used.package.json of the dependency:
Our implementation:
The curious thing is that when swapping the order of the keys
require
andimport
in exports in the dependency, it works!Any ideas about what could be the issue here?
The text was updated successfully, but these errors were encountered: