1
0
mirror of https://github.com/angular/angular-cli.git synced 2025-05-20 13:32:43 +08:00

refactor(@angular/ssr): remove useDefineForClassFields

This removes `useDefineForClassFields` to leave static field instead of using static blocks.
This commit is contained in:
Alan Agius 2024-10-21 07:59:26 +00:00 committed by Alan Agius
parent 44077f54e9
commit 94dbacf447
2 changed files with 1 additions and 3 deletions
packages/angular/ssr/src
tsconfig-build-ng.json

@ -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.

@ -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": [],