title: How to add a polyfill to nuxt 2.0?
body: <p>In Nuxt <code>1.4.2</code>, I had the following in my <code>nuxt.config.js</code>:</p>
  
  <pre><code>build: {
    vendor: ['babel-polyfill'],
    babel: {
      presets: [
        ['vue-app', {
          useBuiltIns: true,
          targets: { ie: 11, uglify: true },
        },
        ],
      ],
    },
  },
  </code></pre>
  
  <p>It seems that all of this is broken in Nuxt <code>2.0</code>. At a minimum I'm looking to polyfill enough to get IE 11 working. Here's what I've tried:</p>
  
  <h2>Using vendor as I used to</h2>
  
  <p>Removing <code>build.babel</code> allowed the build process to work:</p>
  
  <pre><code>build: {
    vendor: ['babel-polyfill'],
  },
  </code></pre>
  
  <p>But I <em>think</em> <code>build.vendor</code> is just ignored now, so this seems to do nothing.</p>
  
  <h2>Using polyfill.io</h2>
  
  <p>I tried adding:</p>
  
  <pre><code>script: [
    { src: 'https://cdn.polyfill.io/v2/polyfill.min.js' },
  ],
  </code></pre>
  
  <p>to my <code>head</code>, along with:</p>
  
  <pre><code>render: {
    resourceHints: false,
  },
  </code></pre>
  
  <p>to disable the <code>preload</code> hints (I'm unsure if this matters). This results in a page which looks correct - <code>polyfill.min.js</code> is loaded before all other scripts. Somehow, when I test on ie11, <code>Object.entries</code> is undefined and the page explodes.</p>