babel/packages/babel-plugin-transform-parameters
Huáng Jùnliàng bffa415b83 Check shadow variable to identifier in default parameters (#10053)
When there is a variable declaration inside the function body, which shares its name to a referenced identifier in default parameter expression, the function body should be wrapped into iife, otherwise the binding in default parameter scope will be shadowed by function body.
2019-12-13 14:39:37 +01:00
..
2019-11-23 00:05:58 +01:00

@babel/plugin-transform-parameters

Compile ES2015 default and rest parameters to ES5

See our website @babel/plugin-transform-parameters for more information.

Install

Using npm:

npm install --save-dev @babel/plugin-transform-parameters

or using yarn:

yarn add @babel/plugin-transform-parameters --dev