rsolve
Resolve module path with custom entry point package.json
field relative to caller file.
Install
$ yarn add rsolve
Usage
rsolveid: string, fieldName: string Promise<string>
console.log await rsolve'package', 'main'console.log await rsolve'@scope/package', 'browser'console.log await rsolve'../relative/path/to/package', 'react-native'