Files
babel/packages/babel-plugin-transform-es2015-block-scoping
Henry Zhu 5ce325c399 v6.14.0
2016-08-24 17:40:46 -06:00
..
2016-08-24 17:40:46 -06: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"]
});