fix: [skip ci] consistent documentation (#5111)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user