caoge c760052ff9 机车状态修改 | 8 mesi fa | |
---|---|---|
.. | ||
lib | 8 mesi fa | |
.npmignore | 8 mesi fa | |
README.md | 8 mesi fa | |
package.json | 8 mesi fa |
Allow parsing of object rest/spread.
$ npm install babel-plugin-syntax-object-rest-spread
.babelrc
(Recommended).babelrc
{
"plugins": ["syntax-object-rest-spread"]
}
$ babel --plugins syntax-object-rest-spread script.js
require("babel-core").transform("code", {
plugins: ["syntax-object-rest-spread"]
});