From 8f952eecd6f6c6ce16813f3853c9278491f9af88 Mon Sep 17 00:00:00 2001 From: Martin Hujer Date: Fri, 20 Nov 2015 20:02:54 +0100 Subject: [PATCH] Transform rest and spread properties using Babel 6 > Out of the box Babel doesn't do anything. In order to actually do > anything to your code you need to enable plugins. > (https://babeljs.io/docs/plugins/) --- docs/06-transferring-props.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/06-transferring-props.md b/docs/06-transferring-props.md index 972b567c..955bf983 100644 --- a/docs/06-transferring-props.md +++ b/docs/06-transferring-props.md @@ -143,7 +143,7 @@ z; // { a: 3, b: 4 } > Note: > -> This proposal has reached stage 2 and is now enabled by default in Babel. Older versions of Babel may need to explicitly enable this transform with `babel --optional es7.objectRestSpread` +> To transform rest and spread properties using Babel 6, you need to install the [`es2015`](https://babeljs.io/docs/plugins/preset-es2015/) preset, the [`transform-object-rest-spread`](https://babeljs.io/docs/plugins/transform-object-rest-spread/) plugin and configure them in the `.babelrc` file. ## Transferring with Underscore