babel/packages/babel-plugin-transform-block-scoping
Huáng Jùnliàng 563874c06c Do not remove let bindings even they are wrapped in closure (#10343)
* fix: should not remove let binding even it is wrapped in closure

Fixes #10339

* fix: remove bindings defined in blockScope when wrapped in closure

* Move test assertions to the top level to ensure that they run
2019-10-08 19:43:12 +02:00
..
2019-09-23 23:14:37 +02:00

@babel/plugin-transform-block-scoping

Compile ES2015 block scoping (const and let) to ES5

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

Install

Using npm:

npm install --save-dev @babel/plugin-transform-block-scoping

or using yarn:

yarn add @babel/plugin-transform-block-scoping --dev