Support transforming async generators like @babel/plugin-proposal-async-generator-functions does #2780
Closed
Description
It would be nice to be able to have esbuild transform async generators like the babel plugin @babel/plugin-proposal-async-generator-functions
does when native async support is disabled, that is:
esbuild: {
supported: {
"async-await": false,
}
}
Currently using async generator functions with async await disabled results in an error.
This is used as a stopgap by Angular's Zone.JS so they can track async generator functions as they have no way to track native async await in the browser ATM, so they rely on down transpiling them to generators.
If esbuild supported this natively, babel wouldn't be needed here.
Metadata
Assignees
Labels
No labels