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

Improve documentation on BSON browser support

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • bson-4.0.3
    • Affects Version/s: None
    • Component/s: BSON
    • None

      From this issue:

      The browser example in the readme assumes you are using rollup or webpack. We should write it explicitly.

      Both bson.browser.esm.js and bson.browser.umd.js are not standalone files. Which is confusing since most JavaScript that have a dist folder have standalone files there.

      The error means that Buffer and Long is undefined

      The solution in this case is to use bson.bundle.js. We should document this

            Assignee:
            daniel.aprahamian@mongodb.com Daniel Aprahamian (Inactive)
            Reporter:
            daniel.aprahamian@mongodb.com Daniel Aprahamian (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: