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