Skip to content

Commit

Permalink
Babel object-rest-spread plugin
Browse files Browse the repository at this point in the history
It's still in ES6 draft, but incredibly useful.
See http://babeljs.io/docs/plugins/transform-object-rest-spread/
  • Loading branch information
chillu authored and Damian Mooyman committed Jul 7, 2016
1 parent 911e315 commit a9a9787
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const browserifyOptions = {

const babelifyOptions = {
presets: ['es2015', 'es2015-ie', 'react'],
plugins: ['transform-object-assign'],
plugins: ['transform-object-assign', 'transform-object-rest-spread'],
ignore: /(node_modules|thirdparty)/,
comments: false,
};
Expand Down
24 changes: 24 additions & 0 deletions npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
"babel-jest": "^9.0.3",
"babel-plugin-transform-es2015-modules-umd": "^6.6.5",
"babel-plugin-transform-object-assign": "^6.5.0",
"babel-plugin-transform-object-rest-spread": "^6.8.0",
"babel-preset-es2015": "^6.6.0",
"babel-preset-es2015-ie": "^6.6.1",
"babel-preset-react": "^6.5.0",
Expand Down

0 comments on commit a9a9787

Please sign in to comment.