title: Error regeneratorRuntime is not defined with Babel 7
body: <p>I would like update my Babel config to version 7 in Electron project.</p>
  
  <p>I've add my all plugins i needed :</p>
  
  <pre><code>"devDependencies": {
      "@babel/cli": "^7.0.0-beta.40",
      "@babel/core": "^7.0.0-beta.40",
      "@babel/node": "^7.0.0-beta.40",
      "@babel/plugin-proposal-class-properties": "^7.0.0-beta.40",
      "@babel/plugin-proposal-decorators": "^7.0.0-beta.40",
      "@babel/plugin-proposal-object-rest-spread": "^7.0.0-beta.40",
      "@babel/plugin-proposal-optional-chaining": "^7.0.0-beta.40",
      "@babel/plugin-transform-async-to-generator": "^7.0.0-beta.40",
      "@babel/polyfill": "^7.0.0-beta.40",
      "@babel/preset-env": "^7.0.0-beta.40",
      "@babel/preset-react": "^7.0.0-beta.40",
      "babel-eslint": "^7.1.1",
  </code></pre>
  
  <p>The compilation is good, but when Electron run my <code>main.js</code> (compiled), i've this error :</p>
  
  <p><code>A JavaScript error occurred in the main process
  Uncaught Exception:
  ReferenceError: regeneratorRuntime is not defined
  </code></p>
  
  <p>I've try to install <code>regeneratorRuntime</code> module, but no result.</p>