【发布时间】:2020-05-29 10:52:42
【问题描述】:
我们在 Windows 10 / IE 11 上的 Vue.js 应用程序出现问题。
在我们将babel.config 更新为以下内容之前,该应用程序一直提供SCRIPT1003: Expected ':':
module.exports = {
presets: [
[
'@vue/cli-plugin-babel/preset',
{
targets: {
'ie': '11'
}
}
]
]
}
此时错误为 SCRIPT1002: Synxax Error chunk-vendors.js (11365, 9311),这似乎与 vuelidate 节点模块有关。
看来我需要exclude上面的包,但我不明白语法应该去哪里。
我也可能需要排除多个包。
基础项目是使用vue-cli 4.4.1 构建的,并且配置文件与库存安装相差不远
【问题讨论】:
标签: vue.js internet-explorer-11 babeljs