$ npm install babel-plugin-syntax-trailing-function-commas
Compile trailing function commas to ES5
$ npm install babel-plugin-syntax-trailing-function-commas
.babelrc
(Recommended).babelrc
{
"plugins": ["syntax-trailing-function-commas"]
}
$ babel --plugins syntax-trailing-function-commas script.js
require("babel-core").transform("code", {
plugins: ["syntax-trailing-function-commas"]
});
© 2010 - cnpmjs.org x YWFE | Home | YWFE