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

Update to be compatible with ESM #12

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Update to be compatible with ESM #12

wants to merge 6 commits into from

Conversation

jchavarri
Copy link
Member

Jest now supports ESM: https://jestjs.io/docs/ecmascript-modules.

This PR updates the bindings to accomodate to that module system. Unfortunately, it's pretty cumbersome to keep compatibility for both, so I think it's ok for now to point users to the last version that supports CommonJS (which the readme does after this PR).

This removes a lot of the friction caused by default imports, see e.g. ahrefs/melange-moment#6.

(Most probably needs to get #10 merged first, which I just noticed)

@jchavarri jchavarri mentioned this pull request Jun 6, 2024
@jchavarri jchavarri requested a review from anmonteiro June 6, 2024 06:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant