Compile ES2015 shorthand properties to ES5
$ npm install babel-plugin-transform-es2015-shorthand-properties
.babelrc
{
"plugins": ["transform-es2015-shorthand-properties"]
}
$ babel --plugins transform-es2015-shorthand-properties script.js
require("babel-core").transform("code", {
plugins: ["transform-es2015-shorthand-properties"]
});