Skip to content

Update to be compatible with ESM#12

Open
jchavarri wants to merge 6 commits intomainfrom
esm
Open

Update to be compatible with ESM#12
jchavarri wants to merge 6 commits intomainfrom
esm

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