Skip to content

Latest commit

 

History

History
 
 

babel-plugin-transform-do-expressions

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

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