chensenlai 10988628a0 语音房项目初始化 | 5 rokov pred | |
---|---|---|
.. | ||
lib | 5 rokov pred | |
test | 5 rokov pred | |
.npmignore | 5 rokov pred | |
README.md | 5 rokov pred | |
package.json | 5 rokov pred |
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"]
});