【发布时间】:2021-02-26 08:55:27
【问题描述】:
我知道有很多线程涵盖了 Vue 2 对 IE11 的支持,我知道它们与 polyfill 配合得很好。 但是可以在 IE11 中使用 Vue 3 吗?如果没有,是否计划支持?
我尝试使用 Vue CLI @vue/cli 4.5.8,它当前安装了 vue@3.0.2(以及 Vuex、Router 和 Typescript 支持)。在我的 vue.config.js 中使用 transpileDependencies: ['vue-router'] 后,我设法让它在 Edge 中工作。 IE11 一直在抱怨“vue”npm 包。在编译它之后,我得到了Accessing the 'caller' property of a function or arguments object is not allowed in strict mode,我目前正在使用它。
我也尝试过 babel polyfills 和 vue 2 提到的其他技术,但没有成功。
【问题讨论】:
标签: javascript vue.js vuejs3