// yarn add @babel/plugin-transform-runtime --dev
// yarn add @babel/runtime
//.babelrc
"plugins": [
["@babel/plugin-transform-runtime",
{
"regenerator": true
}
]
],
//add code below to the top of your main JavaScript file:
import 'regenerator-runtime/runtime'
"plugins": [
["@babel/plugin-transform-runtime",
{
"regenerator": true
}
]
],