Static GitHub Issues

[551] Use babel-polyfill

prev: Consider splitting webpack & related in to a new npm module
next: Want understanding correct server-side cache page

As per this issue babel/babel#3825, babel-polyfill is most useful for applications, so that it can have as close as possible to a real ES6 environment, since a limitation of babel-runtime is that it does not work with certain parts of ES6, such as certain instance methods.

Babel-preset-vue-app cannot modify the entry point, so it can not have babel-polyfill preconfigured https://github.com/vuejs/babel-preset-vue-app/issues/5.

Is there a safe way to extend the Nuxt's entry to include babel-polyfill?

Ideally, since Nuxt doesn't give access to the webpack template itself and only provides the option of extending it, it would be best to have the recommended defaults.

Perhaps it would be better to use babel-preset-vue plugin and have Nuxt setup the runtime/polyfills itself?

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c476">#c476</a>)</em></sub></div>