I am currently utilizing Webpack in conjunction with my Vuejs application.
Unfortunately, I am encountering an issue where my application fails to load on Internet Explorer 11. Here is a snapshot of the console error message:
https://i.sstatic.net/eYwWm.png
The error displayed in the console is SCRIPT1010: Expected identifier
webpack.config.js
{
test: /\.(es6|js|mjs)$/,
exclude: /node_modules/,
use: {
loader: 'babel-loader',
options: {
presets: ['@babel/preset-env']
}
}
},
.babelrc
{
"presets": [
[
"@babel/preset-env",
{
"useBuiltIns": "usage",
"corejs": 3,
"modules": false,
"debug": true
}
]
]
}
.browerslistrc
> 0.25%
not ie <= 10
main.js
import "core-js/stable";