I have a vue-cli 3
app created, and seeing some error messages logged about some JS methods not existing in some browsers.
One error is that AbortController
is not defined.
My questions are:
Was my assumption correct that the default
vue-cli
webpack configuration would add polyfills for these features, such asfetch
, orconst
keywords?Assuming there are some features which aren't polyfilled by default, how can I add a specific one, like
AbortController
orfetch
?
**.browserslistrc**
> 1%
last 2 versions
not ie <= 8
**vue.config.js**
module.exports = {
pwa: {...}
}