Class constructor call

Allow parsing of call constructors.

Class constructor call is a deprecated feature

The class constructor call proposal has been withdrawn (Withdrawn Proposals) and it will be removed in Babel 7.

Syntax only

This plugin only allows Babel to parse this syntax. If you want to transform it then see transform-class-constructor-call.

Installation

npm install --save-dev 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"]
});

References

© 2018 Sebastian McKenzie
Licensed under the MIT License.
http://babeljs.io/docs/plugins/syntax-class-constructor-call/