$ gnpm 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"]
});
Copyright 2013 - present © cnpmjs.org | Home |