babel-plugin-transform-es2015-parameters 6.24.1 • Public • Published 7 years ago babel-plugin-transform-es2015-parameters
Compile ES2015 default and rest parameters to ES5
This plugin transforms ES2015 parameters to ES5, this includes:
Destructuring parameters
Default parameters
Rest parameters
Installation
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 plugin.
Usage
Via .babelrc
(Recommended)
.babelrc
{
" plugins " : [ " transform-es2015-parameters " ]
}
Via CLI
babel --plugins transform-es2015-parameters script.js
Via Node API
require ( " babel-core " ) . transform ( " code " , {
plugins : [ " transform-es2015-parameters " ]
} ) ;
Versions Current Tags Version History Version
Downloads (Last 7 Days) 7.0.0-beta.3
8,334
7.0.0-beta.2
1,297
7.0.0-beta.1
2
7.0.0-beta.0
260
7.0.0-alpha.20
488
7.0.0-alpha.19
546
7.0.0-alpha.18
11
7.0.0-alpha.17
9
7.0.0-alpha.16
4
7.0.0-alpha.15
23
7.0.0-alpha.14
1
7.0.0-alpha.12
23
7.0.0-alpha.11
1
7.0.0-alpha.10
1
7.0.0-alpha.9
13
7.0.0-alpha.8
2
6.24.1
4,528,838
7.0.0-alpha.7
5
7.0.0-alpha.3
2
7.0.0-alpha.1
7
6.23.0
24,538
6.22.0
20,555
6.21.0
5,771
6.18.0
3,773
6.17.0
7,647
6.16.0
29
6.11.4
602
6.11.3
1,403
6.9.0
919
6.8.0
150
6.7.0
362
6.6.5
14
6.6.4
15
6.6.0
15
6.5.0-1
8
6.5.0
58
6.4.5
124
6.4.2
155
6.4.0
12
6.3.26
63
6.3.25
12
6.3.21
182
6.3.18
18
6.3.13
17
6.2.4
7
6.1.18
56
6.1.17
6
6.1.5
6
6.1.4
6
6.0.18
11
6.0.14
18
6.0.2
7
Package Sidebar Install npm i babel-plugin-transform-es2015-parameters
Downloads Weekly Downloads