Metro+TS: support additional package.json fields when resolving a module to a file #805
Closed
5 tasks done
Labels
bug
Something isn't working
What happened?
In
@rnx-kit/typescript-react-native-resolver
, the functionresolveModule
(src/resolve.ts) looks for "default" entry point files in package.json -- fields like "main", "types", and "typings".Repos using newer or custom tech may have other custom fields in their package.json files which refer to additional entry points. For example, Apollo uses the "module" field to refer to the main ES6 module in the package.
This should be an optional configuration parameter which defaults to no additional fields.
Affected Package
@rnx-kit/typescript-react-native-resolver
Version
Which platforms are you seeing this issue on?
System Information
Steps to Reproduce
N/A
Code of Conduct
The text was updated successfully, but these errors were encountered: