diff --git a/src/frontend/polyfills.ts b/src/frontend/polyfills.ts index 9d6601bd..a34e6920 100644 --- a/src/frontend/polyfills.ts +++ b/src/frontend/polyfills.ts @@ -1,7 +1,7 @@ /*************************************************************************************************** * Load `$localize` onto the global scope - used if i18n tags appear in Angular templates. */ -import '@angular/localize/init'; + import '@angular/localize/init'; /** * This file includes polyfills needed by Angular and is loaded before the app. * You can add your own extra polyfills to this file. diff --git a/src/frontend/tsconfig.app.json b/src/frontend/tsconfig.app.json index 519740ef..2a0d791d 100644 --- a/src/frontend/tsconfig.app.json +++ b/src/frontend/tsconfig.app.json @@ -4,12 +4,8 @@ "compilerOptions": { "outDir": "../../out-tsc/app", "types": [], - "target": "es2017", - "module": "es2020", - "lib": [ - "es2018", - "dom" - ] + "target": "ES2022", + "module": "ES2022", }, "files": [ "./main.ts", diff --git a/src/frontend/tsconfig.spec.json b/src/frontend/tsconfig.spec.json index d2a3803c..dcc4d3b2 100644 --- a/src/frontend/tsconfig.spec.json +++ b/src/frontend/tsconfig.spec.json @@ -3,8 +3,8 @@ "extends": "../../tsconfig.json", "compilerOptions": { "outDir": "../../out-tsc/spec", - "target": "es2015", - "module": "es2020", + "target": "ES2022", + "module": "ES2022", "types": [ "jasmine" ] diff --git a/tsconfig.json b/tsconfig.json index c7236934..518d3b59 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -13,11 +13,11 @@ "importHelpers": true, "target": "ES2022", "module": "CommonJS", + "useDefineForClassFields": false, "lib": [ - "es2020", + "ES2022", "dom" - ], - "useDefineForClassFields": false + ] }, "angularCompilerOptions": { "enableI18nLegacyMessageIdFormat": false,