* 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
@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