-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Closed as not planned
Closed as not planned
Copy link
Labels
needs: repro stepsWe cannot reproduce the issue with the information givenWe cannot reproduce the issue with the information given
Description
Command
build, serve
Description
There are reasons why you've added this warning:
TypeScript compiler options "target" and "useDefineForClassFields" are set to "ES2022" and "false" respectively by the Angular CLI. To control ECMA version and features use the Browerslist configuration. For more information, see https://github.com/browserslist/browserslist
To control ECMA version and features use the Browerslist configuration
There is no way to define target
and useDefineForClassFields
in the Browerslist configuration.
Please provide some option to skip target
and useDefineForClassFields
overriding - some projects are not ready for ES2022 and they are too big to modify overnight (or in a few weeks) to be compatible with ES2022, although they are still compatible with Angular 15 itself.
Describe the solution you'd like
Just quick ideas:
--keep-target-value --keep-use-defined-value
and
"targets": {
"build": {
"executor": "@angular-devkit/build-angular:browser",
"options": {
"keepTargetValue": true,
"keepUseDefinedValue": true
}
}
}
Describe alternatives you've considered
No response
Splaktar
Metadata
Metadata
Assignees
Labels
needs: repro stepsWe cannot reproduce the issue with the information givenWe cannot reproduce the issue with the information given