microsoft / kiota

OpenAPI based HTTP Client code generator
https://aka.ms/kiota/docs
MIT License
3k stars 210 forks source link

Migrate vscode extension + test infrastructure to ESM #5752

Open fey101 opened 1 week ago

fey101 commented 1 week ago

Is your feature request related to a problem? Please describe the problem.

No response

Client library/SDK language

TypeScript

Describe the solution you'd like

Current infrastructure for vscode extension is based off commonjs as appears here https://github.com/microsoft/kiota/blob/main/vscode/microsoft-kiota/tsconfig.json#L4. We would like to experiment with moving the project to using ESM modules instead.

This was brought about as a result of a PR review as appears in this comment https://github.com/microsoft/kiota/pull/5540#discussion_r1819067720

Additional context

No response

baywet commented 1 week ago

As additional information for other readers, migrating to ESM will ensure better compatibility with upcoming updated packages, or additional packages we might want to add. It'll also guarantee better reliability as mixing package types is a common source of breakages. It might also reduce javascript size and improve loading performance.