msgraph-sdk-javascript
msgraph-sdk-javascript copied to clipboard
Simplify using the Graph JS SDK as ESM in the browser
Since modern browsers support ESM these days, we should consider improving the developer experience of using the Graph JS SDK as ESM in their client-side apps. The biggest benefit of using ESM is increased modularity of the app (not polluting the global namespace) and a modern programming style that's closer to TypeScript and server-side JavaScript.
The main struggle with using the Graph JS SDK as ESM right now, are references to tslib and other modules, that require using importmaps. I've put together an example that shows a minimal app based on ESM. It would be helpful if we could simplify the developer experience around ESM in the browser.
Definitely for our future version of the SDK. I would make sure we have a fully working ESM version with v4.0 when available!
@waldekmastykarz can you please provide a sample snippet of a simplified developer experience?
@nikithauc please see the link I included in message earlier for a minimal working app.