-
Notifications
You must be signed in to change notification settings - Fork 112
chore!: Build to ES modules #198
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
base: main
Are you sure you want to change the base?
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #198 +/- ##
==========================================
Coverage 100.00% 100.00%
==========================================
Files 2 2
Lines 168 473 +305
Branches 33 40 +7
==========================================
+ Hits 168 473 +305
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@nicknovitski - is this stale, or might this change still get made? I'm seeing some downstream issues that I can work around, but would be nice if this did go in. |
I still intend to make this change. Sorry for the delay! |
aa062b3 to
b772de3
Compare
f717625 to
daedf29
Compare
Jest's support for ESM is lacking, so for simplicity this also changes the test suite to use Node's built-in test runner and typescript support, and jest's `expect` package. This change is breaking because any non-ESM consuming packages must now have minumum Node version of 20.19.0.
I marked this change as breaking because CJS modules running on node versions less than v20.19.0 will need to add the option
--experimental-require-modulein order torequire()the package.CJS modules on v20.19.0 or greater can
require()it by default, and ES modules on node versions 18+ can of courseimportother ES modules without trouble.Jest's support for ESM is lacking, so for simplicity this also changes the test suite to use Node's built-in test runner and typescript support, and jest's
expectpackage.