using async/await with webpack-simple configuration throwing error: RegeneratorRuntime not defined

后端 未结 4 1093
隐瞒了意图╮
隐瞒了意图╮ 2020-12-09 16:00

I am using webpack-simple template with following configurations:

package.json

{
  \"name\": \"vue-wp-simple\",
  \"description\":          


        
4条回答
  •  萌比男神i
    2020-12-09 17:01

    To use async & await, you should add 2 plugins to your babel config: https://babeljs.io/docs/plugins/transform-async-to-generator/ and https://babeljs.io/docs/plugins/syntax-async-functions/

提交回复
热议问题