microsoft / azure-devops-extension-api

REST client libraries and contracts for Azure DevOps web extension developers.
MIT License
96 stars 45 forks source link

Provide ESM modules #109

Open maasha opened 8 months ago

maasha commented 8 months ago

The related azure-devops-extension-sdk library kindly provides ESM modules that works with Vite.

I suggest that azure-devops-extension-api does the same!

reed-lawrence commented 8 months ago

This package is broken out-of-the-box without ESM in Angular. Angular imports the azure-devops-extension-sdk from the minified ESM, this module references the SDK.js meaning that two different modules are created by webpack, leading to the error: The AzureDevOps SDK is already loaded...

vs4vijay commented 4 months ago

Is there any progress on this issue? Additionally, this module is not compatible with ViteJS. We would like to make it compatible with ESM, do you have any plans for that?

maasha commented 4 months ago

@vs4vijay Maybe this can help: https://stackoverflow.com/questions/77151318/how-to-include-javascript-amd-modules-in-a-vite-project