Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
modules: missing exports as MODULE_NOT_FOUND #28905
It seems I missed this change when reviewing #28759, where previously the package.json
I think it is quite important for the core resolver to have a unified
Just like the package.json "main" not being found is still a
This implements that approach for both the CJS and ESM resolvers.
ljharb left a comment
This is a really important change particularly because it should not be possible to know if a path does not exist, or "exists but exports denies you access to it". I consider this a security property as well as something that if unmerged, would constitute an observable breaking change to add a non-exported file.