-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Only allow developing Babel 8 in ESM mode #15816
Conversation
Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/54997/ |
@@ -1,3 +1,13 @@ | |||
if (!process.env.IS_PUBLISH) { |
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.
I personally prefer to put it in jest.config.js
.
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.
I put it here because in local development I often import @babel/core
directly, to see&debug behavior. This is stripped anyway on publish, but having the check here makes it work both with and without Jest in local development.
CI timeout is unrelated (it tests Babel 7). I'm also unsure about the test262 failure. |
This allows us using ESM dependencies in Babel 8.
c800991
to
68ba8e6
Compare
I'm merging this since it blocks a bunch of other PRs. |
NOTE You can now only run with |
Fixes #1, Fixes #2
This allows to use ESM dependencies in Babel 8, such as #15792