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

Distribute ajv with pure esm using Conditional Exports #2015

Open
wangzishi opened this issue Jun 22, 2022 · 0 comments
Open

Distribute ajv with pure esm using Conditional Exports #2015

wangzishi opened this issue Jun 22, 2022 · 0 comments

Comments

@wangzishi
Copy link

What version of Ajv you are you using?
8.11.0

What problem do you want to solve?
Can not using Ajv as pure ESM package. It looks it is currently distributed as CommonJS module.

What do you think is the correct solution to problem?
According to the nodejs documentation:

Conditional exports provide a way to map to different paths depending on certain conditions. They are supported for both CommonJS and ES module imports.

Maybe we can adopt this solution.

Will you be able to implement it?
Yes.

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

No branches or pull requests

1 participant