Skip to content

Commit

Permalink
refactor(@angular/ssr): remove useDefineForClassFields
Browse files Browse the repository at this point in the history
This removes `useDefineForClassFields` to leave static field instead of using static blocks.
  • Loading branch information
alan-agius4 committed Oct 21, 2024
1 parent 44077f5 commit 94dbacf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion packages/angular/ssr/src/app-engine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export class AngularAppEngine {
*
* @private
*/
static ɵhooks = new Hooks();
static ɵhooks = /* #__PURE__*/ new Hooks();

/**
* Provides access to the hooks for extending or modifying the server application's behavior.
Expand Down
2 changes: 0 additions & 2 deletions tsconfig-build-ng.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
"compilerOptions": {
"module": "esnext",
"target": "es2022",
// Keep the below in sync with ng_module.bzl
"useDefineForClassFields": false,
"lib": ["es2020", "dom"],
// don't auto-discover @types/node, it results in a ///<reference in the .d.ts output
"types": [],
Expand Down

0 comments on commit 94dbacf

Please sign in to comment.