Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-4927

Properly support react native in BSON v5 bundle exports

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • bson-5.0.0
    • Affects Version/s: None
    • Component/s: None
    • 0
    • Not Needed
    • Not Needed

      We should continue to support react native in the next major version of BSON. All we need is to specify which bundle react native tooling should pull in.

      AC

      • Add a "react-native" property to the package.json's "exports" field. Set it to point to the commonjs module.
      • Add documentation to the readme describing which polyfills are required to make the library function properly.

      Follow up

      • Add react native testing by running tests in hermes to BSON CI

            Assignee:
            neal.beeken@mongodb.com Neal Beeken
            Reporter:
            neal.beeken@mongodb.com Neal Beeken
            Bailey Pearson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: