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.
npm install --save-dev babel-plugin-syntax-class-constructor-call
.babelrc
(Recommended).babelrc
{
"plugins": ["syntax-class-constructor-call"]
}
babel --plugins syntax-class-constructor-call script.js
require("babel-core").transform("code", {
plugins: ["syntax-class-constructor-call"]
});