node package manager

babel-plugin-transform-do-expressions

Compile do expressions to ES5

babel-plugin-transform-do-expressions

Compile do expressions to ES5

Installation

$ npm install babel-plugin-transform-do-expressions

Usage

Via .babelrc (Recommended)

.babelrc

{
  "plugins": ["transform-do-expressions"]
}

Via CLI

$ babel --plugins transform-do-expressions script.js

Via Node API

require("babel-core").transform("code", {
  plugins: ["transform-do-expressions"]
});