title: Adding babel-polyfill to Webpack 4 configuration file
body: <p>I want to add babel-polyfill to my webpack.config.js.
  Babel documentation shows how to do that:</p>
  
  <pre><code>module.exports = {
    entry: ["babel-polyfill", "./app/js"]
  };
  </code></pre>
  
  <p>However, in my webpack.config.js I'm using more than only one entry point:</p>
  
  <pre><code>module.exports = {
      entry: {
      'js/bundle': './src/scripts/index', // generates bundle.js inside dist/js folder
      'js/another': './src/scripts/another', // generates another.js inside dist/js folder
    },
  }
  </code></pre>
  
  <p>It generates two different bundles inside <strong>dist/js</strong> folder.
  But now, I don't know how to add the <strong>babel-polyfill</strong> to my <strong>entry</strong>.</p>
  
  <p>I tried this:</p>
  
  <pre><code>  entry: [
      babel-polyfill,
      {
        'js/bundle': './src/scripts/index', // generates bundle.js inside dist/js folder
        'js/another': './src/scripts/another', // generates another.js inside dist/js folder
      },
    ]
  </code></pre>
  
  <p>but then when I try to build, I get this error:
  <strong>SyntaxError: Unexpected identifier</strong></p>
  
  <p>Any help?</p>