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
Enable optional chaining and nullish coalescing plugins #10494
Enable optional chaining and nullish coalescing plugins #10494
Conversation
67a390a
to
aae8e3b
Compare
Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/11694/ |
1 similar comment
Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/11694/ |
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.
Nice! Should we add these to preset-env shippedProposals eventually? Not sure how many people are using that anyway though
Well, they aren't shipped anywhere yet 😛 https://kangax.github.io/compat-table/esnext/#test-optional_chaining_operator_(?.) |
@nicolo-ribaudo It's also a good idea to enable this lint rule to make sure it's used correctly: unnecessary-optional-chain Just a small tip 🍻 :) |
@hzoo I use |
Spoiler: given that we release a new minor about every 2 months, probably |
They are both stage 3, and they are used in a few PRs (e.g. #10491, #10357)