-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
[Babel 8] Align esmodules: true behaviour to intersect #17188
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
Conversation
Only snapshot the base esmodules: true query. The other queries can be represented as changes based on the base query.
Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/58876 |
"safari": "10.1", | ||
"samsung": "8.2" | ||
"safari": "18.2", | ||
"samsung": "26" |
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.
These test cases are updated because in Babel 8 a single esmodules: true
will be ignored as the browsers in the defaults
browserslist queries all support ESM.
Agree with also keeping |
Docs PR is ready now: babel/website#3069, ptal. |
Fixes #1, Fixes #2
In this PR we change the
esmodules: true
behaviour in Babel 8 toesmodules: "intersect"
. I didn't remove theesmodules: "intersect"
option because I think it is more straightforward thanesmodules: true
.I also restructured the tests: the snapshots are replaced by static base queries plus various value updates.