title: Why do I get a syntax error when using a spread operator?
body: <p>I'm using ES6's spread operator with Babel as a transpiler to ES5. When I use the spread operator like so:</p>
  
  <pre><code>const { height, weight, radius, ...otherValues } = sphere;
  </code></pre>
  
  <p>I get a <code>SyntaxError</code>:</p>
  
  <pre><code>ERROR in ./src/sphere.js
  Module build failed: SyntaxError: Unexpected token (7:36)
  
     6 | 
  &gt;  7 |   const { height, weight, radius, ...otherValues } = sphere;
       |                                   ^
     8 | 
  </code></pre>
  
  <p>Why is this?</p>