-
The starter says supports ES7 transpilation but i'm getting a regeneratorRuntime error when using async/await. is the @babel/Polyfill required? Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
pnikolov
Sep 29, 2021
Replies: 1 comment
-
In order to add support for {
"presets": [
[
"@babel/preset-env",
{
"targets": {
"esmodules": true
}
}
]
]
} Having this the output code will correctly handle async/await in the targeted browsers. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
pnikolov
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@james0r
In order to add support for
async/await
in your built code you need to modify the.babelrc
file and include the es modules, here is the updated.babelrc
file:Having this the output code will correctly handle async/await in the targeted browsers.