babel-plugin-transform-object-rest-spread
This plugin allows Babel to transform rest properties for object destructuring assignment and spread properties for object literals.
Example
Rest Properties
Spread Properties
Installation
Usage
Via .babelrc
(Recommended)
.babelrc
(Recommended).babelrc
Via CLI
Via Node API
Options
useBuiltIns
useBuiltIns
boolean
, defaults to false
.
By default, this plugin uses Babel's extends
helper which polyfills Object.assign
. Enabling this option will use Object.assign
directly.
.babelrc
In
Out
References
Last updated