Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: export package.json required by react-native and bundlers #449

Merged
merged 1 commit into from May 20, 2020

Commits on May 20, 2020

  1. fix: export package.json required by react-native and bundlers

    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 also:
    ai/nanoevents#44 (comment)
    
    Fixes #444
    ctavan committed May 20, 2020
    Copy the full SHA
    ab3dec6 View commit details
    Browse the repository at this point in the history