mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
84d757446b
Replace the manual injectorsSeen cleanup mechanism with WeakRef and FinalizationRegistry. The old approach worked but coupled cleanup to the UI change detection and required tracking seen injectors across traversal. WeakRef lets the browser handle this naturally, removing the injectorsSeen set and the manual cleanup loop.
30 lines
780 B
JSON
30 lines
780 B
JSON
{
|
|
"compilerOptions": {
|
|
"sourceMap": true,
|
|
"inlineSources": true,
|
|
"declaration": true,
|
|
"strict": true,
|
|
"noImplicitReturns": true,
|
|
"noPropertyAccessFromIndexSignature": true,
|
|
"downlevelIteration": true,
|
|
"experimentalDecorators": true,
|
|
"allowSyntheticDefaultImports": true,
|
|
"module": "esnext",
|
|
"moduleResolution": "bundler",
|
|
"esModuleInterop": true,
|
|
"importHelpers": true,
|
|
"target": "es2022",
|
|
"lib": ["es2022", "dom", "dom.iterable"],
|
|
"types": ["chrome"],
|
|
// TODO: Have an IDE specific tsconfig file
|
|
"paths": {
|
|
"@angular/*": ["../packages/*/index"]
|
|
}
|
|
},
|
|
"angularCompilerOptions": {
|
|
"strictTemplates": true,
|
|
"strictInjectionParameters": true,
|
|
"unusedStandaloneImports": "error"
|
|
}
|
|
}
|