title: Unexpected token export when converting from Babel 6 to Babel 7
body: <p>Het all, I'm converting to create-react-app 2.1.1, and it requires Webpack 7.0.0 as a dependency. But when I convert my app from Babel 6 to Babel 7, I'm getting this error:</p>
  
  <p><a href="https://i.stack.imgur.com/PJSsc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PJSsc.png" alt="I&#39;m converting from Babel 6 -&gt; Babel 7, and I&#39;m getting this error:"></a></p>
  
  <p>The error is coming from inside @babel/runtime in my node_modules, which I'd expect to be ignored.</p>
  
  <p>This is the original code using babel-register <code>require()</code> I'm using:</p>
  
  <p><a href="https://i.stack.imgur.com/bNz9Y.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bNz9Y.png" alt="enter image description here"></a><a href="https://i.stack.imgur.com/os8Vm.png" rel="nofollow noreferrer">enter image description here</a></p>
  
  <p>This is the updated code using @babel/register <code>require()</code> I'm using:</p>
  
  <p><a href="https://i.stack.imgur.com/os8Vm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/os8Vm.png" alt="enter image description here"></a></p>
  
  <p>This is my package.json:</p>
  
  <p>```</p>
  
  <pre><code>{
    "name": "klaw-boilerplate-mernt",
    "version": "0.1.0",
    "private": true,
    "dependencies": {
      "@babel/core": "^7.1.6",
      "@babel/helper-module-transforms": "^7.1.0",
      "@babel/register": "^7.0.0",
      "@babel/runtime": "^7.1.0",
      "@babel/plugin-transform-runtime": "^7.1.0",
      ...
    },
    "devDependencies": {
      ...
    }
  }
  </code></pre>
  
  <p>```</p>