Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

babel-plugin-syntax-class-constructor-call

babel1.8mMIT6.18.0

Allow parsing of class constructor calls (deprecated)

babel-plugin

readme

babel-plugin-syntax-class-constructor-call

Allow parsing of do expressions.

Installation

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

Usage

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