Skip to content

Commit

Permalink
fix(angular): allow usages of ecmascript decorators in ng-packagr exe…
Browse files Browse the repository at this point in the history
…cutors (#26691)

<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->

<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->

<!-- If this is a particularly complex change or feature addition, you
can request a dedicated Nx release for this pull request branch. Mention
someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they
will confirm if the PR warrants its own release for testing purposes,
and generate it for you if appropriate. -->

## Current Behavior
<!-- This is the behavior we have today -->

## Expected Behavior
<!-- This is the behavior we should expect with the changes in this PR
-->

## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes #26448

(cherry picked from commit a871643)
  • Loading branch information
leosvelperez authored and FrozenPandaz committed Jun 26, 2024
1 parent b027042 commit c7cb8da
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/angular/src/executors/utilities/typescript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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
Expand Down

0 comments on commit c7cb8da

Please sign in to comment.