Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 496 Bytes

File metadata and controls

35 lines (24 loc) · 496 Bytes

babel-plugin-syntax-class-constructor-call

Allow parsing of do expressions.

Installation

$ npm install babel-plugin-syntax-class-constructor-call

Usage

Via .babelrc (Recommended)

.babelrc

{
  "plugins": ["syntax-class-constructor-call"]
}

Via CLI

$ babel --plugins syntax-class-constructor-call script.js

Via Node API

require("babel-core").transform("code", {
  plugins: ["syntax-class-constructor-call"]
});