|
||||
---|---|---|---|---|
.. | ||||
lib | 11e3a9652a | 7 lat temu | ||
.npmignore | 11e3a9652a | 7 lat temu | ||
README.md | 11e3a9652a | 7 lat temu | ||
package.json | 11e3a9652a | 7 lat temu |
Allow parsing of class properties.
$ npm install babel-plugin-syntax-class-properties
.babelrc
(Recommended).babelrc
{
"plugins": ["syntax-class-properties"]
}
$ babel --plugins syntax-class-properties script.js
require("babel-core").transform("code", {
plugins: ["syntax-class-properties"]
});