Skip to content

Commit e161d9a

Browse files
committed
@angular/cli migration - update-typescript-target
Update TypeScript compiler `target` and set `useDefineForClassFields`. These changes are for IDE purposes as 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.
1 parent 9a821f8 commit e161d9a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tsconfig.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@
1414
"experimentalDecorators": true,
1515
"moduleResolution": "node",
1616
"importHelpers": true,
17-
"target": "es2020",
17+
"target": "ES2022",
1818
"module": "es2020",
1919
"lib": [
2020
"es2018",
2121
"dom"
22-
]
22+
],
23+
"useDefineForClassFields": false
2324
},
2425
"angularCompilerOptions": {
2526
"enableI18nLegacyMessageIdFormat": false,

tsconfig.server.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"extends": "./tsconfig.app.json",
44
"compilerOptions": {
55
"outDir": "./out-tsc/server",
6-
"target": "es2016",
76
"types": [
87
"node"
98
]

0 commit comments

Comments
 (0)