Issue Description
When using a module which implement browser: {} in their package.json, the corresponding module(s) specified in the package.json will return null (Ref 1 and Ref 2) instead of an empty object as per the spec. This then throws an Unknown module error because the packager assumes that it didn't find a module when getting null (Ref).
I tracked the issue down to the new version of node-haste being used in React Native since the 0.32 version (cc @davidaurelio), but I'm not sure of how to fix it myself.
Steps to Reproduce / Code Snippets
Import a package using the browser field in package.json to ignore modules. https://github.com/yahoo/intl-messageformat for example (Ref package.json and incriminating line)
Expected Results
it should import an empty object instead of throwing an error.
Additional Information
- React Native version: [0.32, 0.33]
- Platform(s) (iOS, Android, or both?): packager
- Operating System (macOS, Linux, or Windows?): *
Issue Description
When using a module which implement
browser: {}in theirpackage.json, the corresponding module(s) specified in thepackage.jsonwill returnnull(Ref 1 and Ref 2) instead of an empty object as per the spec. This then throws anUnknown moduleerror because the packager assumes that it didn't find a module when gettingnull(Ref).I tracked the issue down to the new version of
node-hastebeing used in React Native since the 0.32 version (cc @davidaurelio), but I'm not sure of how to fix it myself.Steps to Reproduce / Code Snippets
Import a package using the browser field in
package.jsonto ignore modules. https://github.com/yahoo/intl-messageformat for example (Refpackage.jsonand incriminating line)Expected Results
it should import an empty object instead of throwing an error.
Additional Information