babel/packages/babel-plugin-transform-es2015-block-scoping
Sebastian McKenzie af208e8acb v6.1.12
2015-11-12 00:47:51 -08:00
..
2015-11-11 10:42:55 -08:00
2015-11-12 00:47:51 -08:00
2015-09-15 06:12:46 +01:00

babel-plugin-transform-es2015-block-scoping

Compile ES2015 block scoping (const and let) to ES5

Installation

$ npm install babel-plugin-transform-es2015-block-scoping

Usage

.babelrc

{
  "plugins": ["transform-es2015-block-scoping"]
}

Via CLI

$ babel --plugins transform-es2015-block-scoping script.js

Via Node API

require("babel-core").transform("code", {
  plugins: ["transform-es2015-block-scoping"]
});