Irina Glushko 2389e7160b HW1 done | 3 éve | |
---|---|---|
.. | ||
lib | 3 éve | |
.npmignore | 3 éve | |
README.md | 3 éve | |
package.json | 3 éve |
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"]
});