egoist / vuepack

:package: A modern starter which uses Vue 2, Vuex, Vue-router and Webpack 2 (and even Electron)
http://vuepack.surge.sh
MIT License
2.43k stars 202 forks source link

How to configure ES7 support? #146

Open tuomassalo opened 7 years ago

tuomassalo commented 7 years ago

I can't wait (!) to use async/await features offered by ES7.

I apologize for my simple question: What is the preferred way to add ES7 support to the vuepack config?

shanoaice commented 4 years ago

Most modern browsers support async/await by default. If you need to support older browsers, consider using babel-plugin-transform-async-to-promises because this plugin does not use regenerator-runtime which will bloat the bundle size. Polyfilling Promise is done by Vuepack's config so there are no worries.