From 8806463a66cea3caacb7ecd94c54bf9124ae650b Mon Sep 17 00:00:00 2001 From: Sebastian Markbage Date: Thu, 24 Mar 2016 16:26:34 -0700 Subject: [PATCH] Add Object Spread Support to Our Babel Config Won't really use this in prod code yet but I have a benchmark that uses it. --- .babelrc | 1 + package.json | 1 + 2 files changed, 2 insertions(+) diff --git a/.babelrc b/.babelrc index 73803b050c..2ff815b425 100644 --- a/.babelrc +++ b/.babelrc @@ -4,6 +4,7 @@ "plugins": [ "fbjs-scripts/babel-6/dev-expression", "syntax-trailing-function-commas", + "babel-plugin-transform-object-rest-spread", "transform-es2015-template-literals", "transform-es2015-literals", "transform-es2015-arrow-functions", diff --git a/package.json b/package.json index 11a716f9cc..c651733353 100644 --- a/package.json +++ b/package.json @@ -25,6 +25,7 @@ "babel-plugin-transform-es2015-template-literals": "^6.5.2", "babel-plugin-transform-es3-member-expression-literals": "^6.5.0", "babel-plugin-transform-es3-property-literals": "^6.5.0", + "babel-plugin-transform-object-rest-spread": "^6.6.5", "babel-preset-react": "^6.5.0", "browserify": "^13.0.0", "bundle-collapser": "^1.1.1",