-
Notifications
You must be signed in to change notification settings - Fork 12k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
for await is not supported when targeting es2018 #21196
Comments
Hi, It appears that this issue is caused by Babel when using the @babel/plugin-transform-async-to-generator plugin. Let's continue tracking this over here babel/babel#13509. |
Browsers support es2018 will support for await, is that possible to not use babel transformer? And webpack 5 supports for await natively. |
See angular/angular#31730 for more context about this. |
Turns out we need to add an additional Babel plugin. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug Report
Affected Package
The issue is caused by package
@angular-devkit/build-angular
Is this a regression?
No
Description
As title
Minimal Reproduction
https://github.com/JounQin/test/blob/angular/src/main.ts#L19
Exception or Error
Your Environment
Angular Version:
Anything else relevant?
The text was updated successfully, but these errors were encountered: