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