简体   繁体   中英

Does vue-cli transpile/polyfill/shim async/await for IE11?

Using standard vue create template, will the following work on 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.

You need to check if Babel is connected to your webpack config. Read this doc to learn more about it.

Then check the .babelrc file in your project directory. Check the targets property in this file. Editting this property you can set up browsers that should be compatible with your code.

More info about this

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM