Update transform-es2015 READMEs from babel.github.io [skip ci] (#4926)
Signed-off-by: Brian Ng <bng412@gmail.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user