Update transform-es2015 READMEs from babel.github.io [skip ci] (#4926)

Signed-off-by: Brian Ng <bng412@gmail.com>
This commit is contained in:
Brian Ng
2016-12-01 15:11:36 -06:00
committed by Henry Zhu
parent 723c90e8f0
commit f71efbce92
22 changed files with 469 additions and 21 deletions

View File

@@ -1,6 +1,6 @@
# babel-plugin-transform-es2015-parameters
Compile ES2015 default and rest parameters to ES5
> Compile ES2015 default and rest parameters to ES5
## Installation
@@ -8,6 +8,12 @@ Compile ES2015 default and rest parameters to ES5
npm install --save-dev babel-plugin-transform-es2015-parameters
```
## Caveats
Default parameters desugar into `let` declarations to retain proper semantics. If this is
not supported in your environment then you'll need the
[transform-block-scoping](/docs/plugins/transform-es2015-block-scoping) plugin.
## Usage
### Via `.babelrc` (Recommended)