[英]Does vue-cli transpile/polyfill/shim async/await for IE11?
Using standard vue create
template, will the following work on IE11: 使用标准的
vue create
模板,将在IE11上进行以下工作:
async toggleSettings({ dispatch }) {
if (await dispatch('confirm') { // etc }
}
? ?
You should check it on your own, because i don't know what template of vue-cli you use. 您应该自己检查它,因为我不知道您使用的是什么vue-cli模板。
You need to check if Babel
is connected to your webpack config. 您需要检查
Babel
是否已连接到Webpack配置。 Read this doc to learn more about it. 阅读此文档以了解更多信息。
Then check the .babelrc
file in your project directory. 然后检查项目目录中的
.babelrc
文件。 Check the targets
property in this file. 检查此文件中的
targets
属性。 Editting this property you can set up browsers that should be compatible with your code. 编辑此属性,您可以设置应该与您的代码兼容的浏览器。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.