mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Currently when the signal debug name transform sees something like `const foo = signal(0);`, it transforms the signal into `signal(0, {...(ngDevMode ? { debugName: 'foo' } : {})})`. After minification this becomes `signal(0, {})` which will allocate memory for the empty object literal.
These changes rework the logic to produce `signal(0, ...(ngDevMode ? [{ debugName: 'foo' }] : []))` which will be fully tree shaken away to `signal(0)`.
|
||
|---|---|---|
| .. | ||
| GOLDEN_PARTIAL.js | ||
| mixed_model_types.js | ||
| mixed_model_types.ts | ||
| model_component_definition.js | ||
| model_component_definition.ts | ||
| model_directive_definition.js | ||
| model_directive_definition.ts | ||
| TEST_CASES.json | ||