Enable optional chaining and nullish coalescing plugins#10494
Enable optional chaining and nullish coalescing plugins#10494nicolo-ribaudo merged 2 commits intobabel:masterfrom
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/ |
hzoo
left a comment
There was a problem hiding this comment.
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)