fix: [skip ci] consistent documentation (#5111)

This commit is contained in:
Sven SAULEAU
2017-01-14 15:45:20 +01:00
committed by Henry Zhu
parent d3f3aced40
commit 982850731e
2 changed files with 9 additions and 1 deletions

View File

@@ -1,6 +1,8 @@
# babel-plugin-transform-es2015-duplicate-keys
> Compile objects with duplicate keys to valid strict ES5. This plugin actually converts duplicate keys in objects to be computed properties, which then must be handled by the [transform-es2015-computed-properties](http://babeljs.io/docs/plugins/transform-es2015-computed-properties) plugin. The final result won't contain any object literals with duplicate keys.
> Compile objects with duplicate keys to valid strict ES5.
This plugin actually converts duplicate keys in objects to be computed properties, which then must be handled by the [transform-es2015-computed-properties](http://babeljs.io/docs/plugins/transform-es2015-computed-properties) plugin. The final result won't contain any object literals with duplicate keys.
## Example

View File

@@ -2,6 +2,12 @@
> Compile ES2015 default and rest parameters to ES5
This plugin transforms ES2015 parameters to ES5, this includes:
- Destructuring parameters
- Default parameters
- Rest parameters
## Installation
```sh