-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
Empty show more show less
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
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?