-
Notifications
You must be signed in to change notification settings - Fork 17
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
feat: migrate to native ESM #84
Conversation
@@ -1,14 +1,13 @@ | |||
{ | |||
"compilerOptions": { | |||
"target": "es2015", | |||
"module": "commonjs", | |||
"module": "ES2020", | |||
"moduleResolution": "node", | |||
"lib": ["es2018"], | |||
"noEmit": true, | |||
"noImplicitReturns": true, | |||
"strict": true, | |||
"esModuleInterop": true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
chalk
still uses exports =
, after that we can remove
BREAKING CHANGE: Drop support for Jest v26 BREAKING CHANGE: Module is now written in native ESM
}, | ||
})); | ||
|
||
jest.doMock('ansi-escapes', () => ({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needs to mock the CJS version used by jest-watcher
and the ESM version used by ourselves
# [1.0.0](v0.6.5...v1.0.0) (2021-09-29) ### Bug Fixes * add `exports` field to package.json ([#86](#86)) ([1bcd08f](1bcd08f)) * drop support for EOL versions of node ([#85](#85)) ([7351933](7351933)) ### Features * migrate to native ESM ([#84](#84)) ([a8e6940](a8e6940)) ### BREAKING CHANGES * Drop support for Jest v26 * Module is now written in native ESM * Disallow importing internal files * Supported version range of node is now ^12.22.0 || ^14.17.0 || >=16.0.0
🎉 This PR is included in version 1.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Need to start dogfooding ESM in Jest.