Closed redexp closed 2 years ago
This is a problem with React Native. You should report it on the React Native issue tracker instead. It's a losing battle to get every single package out there to manually expose package.json just for React Native.
@sindresorhus I have a lot installed packages and I was surprised when such small package like yours was first which throws any warnings. Changing "exports": "./index.js"
to "main": "index.js"
also works.
I'm using this module in react-native project and without next modification to
package.json
file it throws warningModification needed
I think it's because of
Introducing the "exports" field prevents consumers of a package from using any entry points that are not defined
docs and webpack needs access to package.json