Skip to content

Warning about ES2017+ target does not show when using Webpack plugin #19226

@thw0rted

Description

@thw0rted

🐞 Bug report

Component

@ngtools/webpack (AngularCompilerPlugin)

Is this a regression?

No

Description

#13643 added a warning message when the TS compiler is configured to emit ES2017 or higher, due to #13477. This warning is not displayed when the project is built via Webpack using AngularCompilerPlugin. I asked on angular/angular#31730 and it sounds like we need a separate ticket to track this since the linked PR and issue are both auto-closed. It doesn't look like there's a path forward on the Zone issue so this is going to keep biting people for a good while, I think.

🔬 Minimal Reproduction

Pick any project you have lying around that uses AngularCompilerPlugin, change compilerOptions.target in the tsconfig.json to ES2017, and build. If you were building it with the CLI you'd see Warning: Zone.js does not support native async/await in ES2017 on the console, but not with the plugin.

🌍 Your Environment

@ngtools-webpack 10.1.2, but I don't see any relevant changes in the recent 11+ builds.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions