Allow parsing of class properties.
$ npm install babel-plugin-syntax-class-properties
.babelrc
{
"plugins": ["syntax-class-properties"]
}
$ babel --plugins syntax-class-properties script.js
require("babel-core").transform("code", {
plugins: ["syntax-class-properties"]
});