-
-
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
Fix backward-compatibility of babel-preset-es2015 - fixes T7536 #3635
Conversation
d6fcfb7
to
66317b1
Compare
Object.defineProperty(module.exports, "buildPreset", { | ||
configurable: true, | ||
writable: true, | ||
enumerable: false, |
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.
Probably worth noting why this has to be non-enumerable, to avoid triggering the check for unknown options
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.
Good call.
For those coming here still trying to fix their builds, upgrade your babel-core to the latest to solve the issue; and/or any dep that includes babel-core like babel-cli, etc. This PR is about fixing the issue for people who don't upgrade their babel-core. |
@@ -4,7 +4,8 @@ var expect = require("chai").expect; | |||
|
|||
suite("es2015 preset", function () { | |||
test("exposes a function", function () { |
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.
This is probably inaccurate now :>
Originally pointed out by @Kovensky in #3635 (comment).
Originally pointed out by @Kovensky in #3635 (comment).
No description provided.