Latest commit e9fc38b Jan 19, 2017 @hzoo hzoo v6.22.0
Permalink
..
Failed to load latest commit information.
src enable prefer const (#5113) Jan 14, 2017
test Refactor test packages to use ES modules instead of CJS (#5138) Jan 16, 2017
.npmignore
README.md Update transform-es2015 READMEs from babel.github.io [skip ci] (#4926) Dec 1, 2016
package.json

README.md

babel-plugin-transform-es2015-block-scoping

Compile ES2015 block scoping (const and let) to ES5

Installation

npm install --save-dev babel-plugin-transform-es2015-block-scoping

Usage

Via .babelrc (Recommended)

.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"]
});