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

View File

@ -30,7 +30,7 @@ export class AngularAppEngine {
* *
* @private * @private
*/ */
static ɵhooks = new Hooks(); static ɵhooks = /* #__PURE__*/ new Hooks();
/** /**
* Provides access to the hooks for extending or modifying the server application's behavior. * Provides access to the hooks for extending or modifying the server application's behavior.

View File

@ -8,8 +8,6 @@
"compilerOptions": { "compilerOptions": {
"module": "esnext", "module": "esnext",
"target": "es2022", "target": "es2022",
// Keep the below in sync with ng_module.bzl
"useDefineForClassFields": false,
"lib": ["es2020", "dom"], "lib": ["es2020", "dom"],
// don't auto-discover @types/node, it results in a ///<reference in the .d.ts output // don't auto-discover @types/node, it results in a ///<reference in the .d.ts output
"types": [], "types": [],