Vue.js vue项目中的IE兼容性问题
我目前正在使用vue。 有两个问题Vue.js vue项目中的IE兼容性问题,vue.js,Vue.js,我目前正在使用vue。 有两个问题 当我用IE浏览器打开页面时,我得到一个异步函数语法错误。 我认为这是一个js兼容性问题,我设置了babel loader,但我仍然得到一个错误。 下面的设置有问题吗 firebase/消息传递库在IE和Safari中不起作用。 这个错误似乎不是发生在IE中,而是发生在Firefox中 库polyfill不工作或不转换。下面的杠铃设置有问题吗? 这是项目网页,请在此处输入相关库版本的代码 “@babel/cli”:“^7.13.16”, “@babel/core
{
test: /\.m?js$/,
include: path.resolve(__dirname, '/node_modules/@firebase'),
exclude: /(node_modules|bower_components)/,
use: {
loader: 'babel-loader',
options: {
presets: [
// ['@babel/preset-env', '@vue/app', {
// targets: "ie 11",
// useBuiltIns: "usage",
// corejs: "3"
// }]
["@babel/preset-env", {
"targets": {
"browserslist": "> 0.25%, not dead"
},
"useBuiltIns": "usage",
"corejs":3,
"shippedProposals": true
}]
]
}
}
},
您使用的是什么版本的Vue?Vue 3不支持IE11,因为它需要的功能无法在AIK“Vue”中填充“^2.6.12”使用
{
test: /\.m?js$/,
include: path.resolve(__dirname, '/node_modules/@firebase'),
exclude: /(node_modules|bower_components)/,
use: {
loader: 'babel-loader',
options: {
presets: [
// ['@babel/preset-env', '@vue/app', {
// targets: "ie 11",
// useBuiltIns: "usage",
// corejs: "3"
// }]
["@babel/preset-env", {
"targets": {
"browserslist": "> 0.25%, not dead"
},
"useBuiltIns": "usage",
"corejs":3,
"shippedProposals": true
}]
]
}
}
},