Export map without '.' entry throws on self-referenntial deep imports #30633
Labels
esm
Issues and PRs related to the ECMAScript Modules implementation.
help wanted
Issues that need assistance from volunteers or PRs that need help to proceed.
package.json
index.mjs
Will throw with the error
Adding a dot export to the package.json makes thing work as expected
Seems like this might be to spec (as currently written). I'm not sure that we want to enforce a "." main if folks don't need one (thinking about top level application), but at the very least we likely want to throw with a better error... lost some time debugging this.
The text was updated successfully, but these errors were encountered: