Skip to content

Latest commit

 

History

History
 
 

babel-plugin-syntax-do-expressions

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

babel-plugin-syntax-do-expressions

Allow parsing of do expressions.

Installation

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

Usage

Via .babelrc (Recommended)

.babelrc

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

Via CLI

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

Via Node API

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