* @babel/traverse: Fix NodePath.getData Currently, if the obtained value is `false`, it will be replaced by the given default value, which is invalid. This makes sure that we only set the default value when the value is `undefined`, instead of falsy. * Add test and fix object protoype * Allow false as default value
@babel/traverse
The Babel Traverse module maintains the overall tree state, and is responsible for replacing, removing, and adding nodes
See our website @babel/traverse for more information or the issues associated with this package.
Install
Using npm:
npm install --save-dev @babel/traverse
or using yarn:
yarn add @babel/traverse --dev