babel/packages/babel-plugin-proposal-optional-chaining
Justin Ridgewell 844dd33f3d
Microbouji patch/8136 (#9073)
* Fix optional chaining bug regarding spread in function calls

* Revamp optional-chain to be top down

Instead of going both upwards and downwards from the first real optional expression, we can just start from the top down.

* Add more tests
2018-11-24 09:32:24 -05:00
..
2018-11-24 09:32:24 -05:00
2018-11-24 09:32:24 -05:00

@babel/plugin-proposal-optional-chaining

Transform optional chaining operators into a series of nil checks

See our website @babel/plugin-proposal-optional-chaining for more information.

Install

Using npm:

npm install --save-dev @babel/plugin-proposal-optional-chaining

or using yarn:

yarn add @babel/plugin-proposal-optional-chaining --dev