Skip to content
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

chore: update TS target to ES2022 #29

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

JeanMeche
Copy link
Contributor

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

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants