chensenlai 10988628a0 语音房项目初始化 | 5 年之前 | |
---|---|---|
.. | ||
lib | 5 年之前 | |
.npmignore | 5 年之前 | |
README.md | 5 年之前 | |
package.json | 5 年之前 |
Compile object rest and spread to ES5
$ npm install babel-plugin-transform-object-rest-spread
.babelrc
(Recommended).babelrc
{
"plugins": ["transform-object-rest-spread"]
}
$ babel --plugins transform-object-rest-spread script.js
require("babel-core").transform("code", {
plugins: ["transform-object-rest-spread"]
});