mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Wrap operationsCounter method calls (recordCreate, recordDestroy, reset) with ngDevMode guards to ensure they are tree-shaken in production builds. This aligns with the existing pattern where operationsCounter is only initialized in development mode, and eliminates unnecessary method call overhead in production. The optional chaining (?.) is retained as TypeScript doesn't narrow types based on ngDevMode checks, but the entire expression will be removed during production builds. |
||
|---|---|---|
| .. | ||
| global | ||
| primitives | ||
| resources | ||
| rxjs-interop | ||
| schematics | ||
| src | ||
| test | ||
| testing | ||
| BUILD.bazel | ||
| index.ts | ||
| package.json | ||
| PACKAGE.md | ||
| public_api.ts | ||
| tsconfig-build.json | ||
| tsconfig-test.json | ||