stackblitz / starters

StackBlitz Starter Project
MIT License
37 stars 16 forks source link

chore: update TS target to ES2022 #29

Closed JeanMeche closed 2 months ago

JeanMeche commented 7 months ago

With webcontainers now enabled by default, the CLI is building the angular app. The CLI downlevels native async/awaits (via babel) to support zone.js patching and there is no need to target <ES2017 anymore (where TSC was doing the down leveling).

Moving to ES2022 removes the following warning in the console: TypeScript compiler options "target" and "useDefineForClassFields" are set to "ES2022" and "false" respectively by the Angular CLI. when starting a project