Syntax class properties
Syntax only
This plugin only allows Babel to parse this syntax. If you want to transform it then see transform-class-properties.
This plugin allows Babel to parse class properties.
Installation
npm install --save-dev babel-plugin-syntax-class-properties
Usage
Via .babelrc
(Recommended)
.babelrc
{ "plugins": ["syntax-class-properties"] }
Via CLI
babel --plugins syntax-class-properties script.js
Via Node API
require("babel-core").transform("code", { plugins: ["syntax-class-properties"] });
© 2018 Sebastian McKenzie
Licensed under the MIT License.
http://babeljs.io/docs/plugins/syntax-class-properties/