3.1.1
https://github.com/abreitenfeld/vue-polyfills
Node v8.11.4
NPM v.5.6.0
babel.config.js
with the preset polyfills
(according to the CLI documentation)Build succeeds with the given polyfills
Build fails with the error Unknown option: .polyfills
I used the example from https://cli.vuejs.org/guide/browser-compatibility.html#polyfills
module.exports = {
presets: [
- '@vue/app', {
+ ['@vue/app', {
polyfills: [
'es6.promise',
'es6.symbol'
]
- }
+ }]
]
}
Most helpful comment