angular/packages/compiler-cli/test/compliance/test_cases/model_inputs
Kristiyan Kostadinov e30e61b789 fix(compiler-cli): avoid allocating an object for signals in production mode
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)`.
2025-12-02 15:06:51 +01:00
..
GOLDEN_PARTIAL.js fix(compiler-cli): avoid allocating an object for signals in production mode 2025-12-02 15:06:51 +01:00
mixed_model_types.js refactor(compiler): update compliance tests. (#58238) 2024-10-24 12:44:12 -07:00
mixed_model_types.ts refactor(compiler): update compliance tests. (#58238) 2024-10-24 12:44:12 -07:00
model_component_definition.js fix(compiler): output input flags as a literal (#55215) 2024-04-04 11:13:52 -07:00
model_component_definition.ts refactor(compiler): update compliance tests. (#58238) 2024-10-24 12:44:12 -07:00
model_directive_definition.js refactor(compiler): update compliance tests. (#58238) 2024-10-24 12:44:12 -07:00
model_directive_definition.ts refactor(compiler): update compliance tests. (#58238) 2024-10-24 12:44:12 -07:00
TEST_CASES.json