From c7cb8da5fd163e482af4ed39a9091b3f71a2559e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leosvel=20P=C3=A9rez=20Espinosa?= Date: Wed, 26 Jun 2024 11:06:08 +0200 Subject: [PATCH] fix(angular): allow usages of ecmascript decorators in ng-packagr executors (#26691) ## Current Behavior ## Expected Behavior ## Related Issue(s) Fixes #26448 (cherry picked from commit a871643b37c121b811fa44b64cd5473a05c5ef3e) --- packages/angular/src/executors/utilities/typescript.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/angular/src/executors/utilities/typescript.ts b/packages/angular/src/executors/utilities/typescript.ts index 805e3fcf0d14e..5d3aa3b6e2c6c 100644 --- a/packages/angular/src/executors/utilities/typescript.ts +++ b/packages/angular/src/executors/utilities/typescript.ts @@ -14,8 +14,7 @@ import { loadEsmModule } from './module-loader'; async function readDefaultTsConfig(fileName: string) { // these options are mandatory const extraOptions: ts.CompilerOptions = { - target: ts.ScriptTarget.ES2020, - experimentalDecorators: true, + target: ts.ScriptTarget.ES2022, // sourcemaps sourceMap: false, @@ -25,7 +24,7 @@ async function readDefaultTsConfig(fileName: string) { outDir: '', declaration: true, - // ng compiler to options + // ng compiler enableResourceInlining: true, // these are required to set the appropriate EmitFlags