You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, weirdly, there are bundlers that would throw when trying to interop between ESM and CJS if package.json was not manually specified this way in conditional exports. This field is meant to prevent that from happening at all. I think the last context I saw it in was React Native with Metro as the bundler.
This will also allow for import pkgJson from "my-package/package.json" assert { type: "json" } out of the box when Node supports it.
Hi,
Apologies if this is the wrong place to ask but I wonder if it would be possible to explain why
package.json
is included in the exports?The text was updated successfully, but these errors were encountered: