lihai 8d6c751f49 feat: push | il y a 2 ans | |
---|---|---|
.. | ||
lib | il y a 2 ans | |
.npmignore | il y a 2 ans | |
README.md | il y a 2 ans | |
package.json | il y a 2 ans |
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"]
});