bson does not expose a default export

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • bson-4.2.1
    • Affects Version/s: 4.0.0
    • Component/s: BSON
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      When loading bson from TypeScript as import bson from 'bson';, that breaks with bson@4.2.0, because TypeScript sees that `lib/bson.js` was generated from a TypeScript module without a default export. (This does not affect genuine ES6 modules, only TypeScript modules.)

      Adding a default export back, at least for bson@4.x.x, should fix this.

            Assignee:
            Neal Beeken
            Reporter:
            Anna Henningsen
            None
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: