webpack-autoconf icon indicating copy to clipboard operation
webpack-autoconf copied to clipboard

regeneratorRuntime is not defined with Babel 7 (cant use async function)

Open Moussack opened this issue 4 years ago • 0 comments

need to install these two dependencies to fix :

  • @babel/runtime --save
  • @babel/plugin-transform-runtime --save-dev

in babel.rc

{
    "presets": ["@babel/preset-env"],
    "plugins": [
        ["@babel/transform-runtime"]
    ]
}

Moussack avatar Oct 23 '21 04:10 Moussack