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
[hotfix] Use same targets for fields as for private methods #11633
[hotfix] Use same targets for fields as for private methods #11633
Conversation
Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/23004/ |
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 0c6350d:
|
Yay, thanks! |
@nicolo-ribaudo I just got the same problem with numeric separators in node 13 |
That is unexpected 🤔 The problem fixed by this PR is that the private methods and class fields plugins depend on each other, and on Node.js 12 only one of them was enabled. Numeric separators don't have such hidden dependency 🤔 |
This is weird, I got syntax error similar to class properties. And only in node 13 but not 12 |
What is the exact error? |
This is very weird, syntax plugin is included. Here's debug output
By the way same problem with 14.3. Though I cannot reproduce it in isolated example. |
Could you share your lockfile in a gist? Also, if you can put |
Oh, I get it. Sorry, it's rollup syntax error 🤦 |
The above code doesn't work with Babel 7.10.0 because
create-class-features
create-class-features
, we check if all the eeded features are enabled. We don't support transforming private methods without transforming private fields, so we throw an errorI'm working on removing the dependency between the two plugins, but this quick and dirty hack makes preset-env work until I open a better PR. I would like to merge this one for the next patch release (today?).
cc @TrySound