title: Getting default implementation of @babel/present-env to work with IE11
body: <p>My <code>@babel/preset-env</code> configuration is working fine except for IE11. When I run it in IE11 I get this error:</p>
  <blockquote>
  <p>SCRIPT438: Object doesn't support property or method 'assign'</p>
  </blockquote>
  <p>After googling the error I see I need to use <code>babel/polyfill</code>, but it is deprecated and the suggestion is that you now use <code>core-js</code>. For such a widely used tool the official documentation is lacking.</p>
  <p>I followed other StackOverflow posts and came up with this solution, but still I get the error:</p>
  <p><strong>Package.json:</strong></p>
  <pre><code>&quot;devDependencies&quot;: {
      &quot;@babel/core&quot;: &quot;^7.10.2&quot;,
      &quot;@babel/preset-env&quot;: &quot;^7.10.2&quot;,
      &quot;babel-loader&quot;: &quot;^8.1.0&quot;,
      &quot;core-js&quot;: &quot;^3.6.5&quot;,
      ...
  }
  </code></pre>
  <p><strong>webpack.config:</strong></p>
  <pre><code>{
     test: /\.(js)$/,
     exclude: /node_modules/,
     use: {
        loader: 'babel-loader',
        options: {
           // presets: ['@babel/preset-env'],
           presets: [
              [
                 &quot;@babel/preset-env&quot;, {
                    &quot;targets&quot;: {
                       &quot;browsers&quot;: [&quot;last 2 versions&quot;, &quot;&gt; 0.1%&quot;, &quot;not dead&quot;, &quot;ie &gt;= 11&quot;]
                    },
                    &quot;useBuiltIns&quot;: &quot;usage&quot;,
                    &quot;corejs&quot;: 3
                 }
              ]
           ]
        }
     }
  },
  </code></pre>
  <p>I don't have a <code>babelrc</code> or <code>browserlists</code> file as I want to keep it as minimalist as possible.</p>
  <p>Why isn't this working and why do I continue to get this error:</p>
  <pre><code>function e(){!function(e,t){if(!(e instanceof t))throw new TypeError(&quot;Cannot call a class as a function&quot;)}(this,e)}
  SCRIPT438: Object doesn't support property or method 'assign'
  </code></pre>