* overload `skipTransparentExprWrappers` * fixes isSimpleMemberExpression in @babel/plugin-proposal-optional-chaining * use skipTransparentExprWrappers<Expression> instead of the NodePath overload where possible in @babel/plugin-proposal-optional-chaining * Revert "overload `skipTransparentExprWrappers`" This reverts commit fad47596a64a8d33aadacb7695dbf1aa60a528ae. * add helper `skipTransparentExprWrapperNodes` * avoids constructing NodePaths when only the Node is needed * fixes isSimpleMemberExpression in @babel/plugin-proposal-optional-chaining * use this new helper instead of skipTransparentExprWrappers where possible in @babel/plugin-proposal-optional-chaining
@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