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

Publish ES5 libraries for mongodb-extjson and bson

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.0.3
    • Affects Version/s: None
    • Component/s: None

      Starting to use the mongodb-stitch client for frontend applications. The ES6 versions of the mongodb-extjson and bson libraries are making it difficult to package frontend code. I'm using create-react-app and get build errors.
      I understand using the ES6 versions on backend code, but the Stitch client lives on the frontend and not all browsers support ES6. The developer shouldn't have to worry about doing more than npm install mongodb-stitch --save and then import

      { StitchClient }

      from 'mongodb-stitch'; in their app. We do highlight the issue here, but for people using create-react-app, it would involve ejecting the application. Ejecting just to our library seems like a bad user experience. Is there a way that we could improve this experience and minimize any performance issues?

            Assignee:
            daniel.aprahamian@mongodb.com Daniel Aprahamian (Inactive)
            Reporter:
            aydrian.howard Aydrian Howard
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: