mirror of
https://github.com/hanzoai/uuid.git
synced 2026-09-24 17:04:02 +00:00
It appears that react-native and some bundlers rely on being able to introspect the package.json file of a npm module. After adding the `exports` field to package.json, only the paths defined in that field are accessible to Node.js. In order to support introspection of the package.json file itself it has to be listed as an export as well (see: https://github.com/ai/nanoevents/issues/44#issuecomment-602010343). It is currently being discussed to change Node.js' behavior again, see: https://github.com/nodejs/node/issues/33460 Until then, adding package.json to the exports field should result in minimum breakage. Fixes #444