Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert swagger-client to ESM #2414

Open
char0n opened this issue Jan 14, 2022 · 0 comments
Open

Convert swagger-client to ESM #2414

char0n opened this issue Jan 14, 2022 · 0 comments
Labels

Comments

@char0n
Copy link
Member

char0n commented Jan 14, 2022

Node.js world has moved to native ESM support some time ago. Wee need to get on this train to be able to used ESM or CommonJS packages. If we maintain status quo, we can only use older CommonJS packages.

Resources:

We already have explicit usage of file extension that was introduced in #2320.

We need to add "type": "module" to the package.json as well.

This change should be fully compatible so we should still be using older package fields like main or browser along with new exports.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant