babel-plugin-transform-object-destructuring-to-dot-notation
Replaces identifiers from a destructured object by its object dot notation.
Input:
const a b c = myObject; console;
Output:
console;
Install
npm i babel-plugin-transform-object-destructuring-to-dot-notation
Usage
.babelrc
)
With a configuration file (
Via Node API
;
Options
objects
Array
, defaults to undefined
.
e.g. ['babel-plugin-transform-object-destructuring-to-dot-notation', { objects: ['objectOne', 'objectTwo'] }]
List of object names which destructured properties should be transformed to dot notation.
License
This project is licensed under the MIT License.