babel/packages/babel-plugin-transform-es2015-destructuring
Logan Smyth 5d31316fb1 Merge pull request #5093 from existentialism/issue5090
Ensure array is always copied during destructure
2017-01-15 13:10:02 -08:00
..
2017-01-11 17:12:09 -06:00
2016-11-16 11:15:30 -05:00

babel-plugin-transform-es2015-destructuring

Compile ES2015 destructuring to ES5

Installation

npm install --save-dev babel-plugin-transform-es2015-destructuring

Usage

.babelrc

{
  "plugins": ["transform-es2015-destructuring"]
}

Via CLI

babel --plugins transform-es2015-destructuring script.js

Via Node API

require("babel-core").transform("code", {
  plugins: ["transform-es2015-destructuring"]
});