angular/packages/compiler-cli/test/compliance/test_cases
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
..
model_inputs fix(compiler-cli): avoid allocating an object for signals in production mode 2025-12-02 15:06:51 +01:00
output_function fix(compiler-cli): capture metadata for undecorated fields (#63957) 2025-10-09 14:02:16 -04:00
r3_compiler_compliance fix(compiler): prevent XSS via SVG animation attributeName and MathML/SVG URLs 2025-12-01 10:26:56 +01:00
r3_view_compiler fix(compiler-cli): avoid allocating an object for signals in production mode 2025-12-02 15:06:51 +01:00
r3_view_compiler_bindings fix(compiler-cli): avoid allocating an object for signals in production mode 2025-12-02 15:06:51 +01:00
r3_view_compiler_control_flow feat(core): support as aliases on else if blocks (#63047) 2025-08-08 08:43:00 -07:00
r3_view_compiler_deferred refactor(compiler): support viewport trigger options in pipeline (#64130) 2025-10-09 05:32:20 -07:00
r3_view_compiler_di/di refactor(compiler): update compliance tests. (#58238) 2024-10-24 12:44:12 -07:00
r3_view_compiler_directives refactor(compiler): update compliance tests. (#58238) 2024-10-24 12:44:12 -07:00
r3_view_compiler_i18n refactor(core): remove deprecated interpolation option on Components. (#63474) 2025-09-15 19:35:03 +00:00
r3_view_compiler_input_outputs feat(compiler-cli): add experimental support for fast type declaration emission (#61334) 2025-05-14 14:07:37 -07:00
r3_view_compiler_let refactor(compiler): produce DOM-only instructions (#62096) 2025-06-23 14:24:09 +02:00
r3_view_compiler_listener fix(compiler-cli): avoid allocating an object for signals in production mode 2025-12-02 15:06:51 +01:00
r3_view_compiler_providers refactor(compiler): update compliance tests. (#58238) 2024-10-24 12:44:12 -07:00
r3_view_compiler_styling feat(compiler-cli): enable type checking of host bindings by default (#63654) 2025-09-09 14:34:29 -07:00
r3_view_compiler_template refactor(compiler): produce DOM-only instructions (#62096) 2025-06-23 14:24:09 +02:00
signal_inputs fix(compiler-cli): avoid allocating an object for signals in production mode 2025-12-02 15:06:51 +01:00
signal_queries fix(compiler-cli): avoid allocating an object for signals in production mode 2025-12-02 15:06:51 +01:00
source_mapping fix(compiler-cli): capture metadata for undecorated fields (#63957) 2025-10-09 14:02:16 -04:00
BUILD.bazel build: rename defaults2.bzl to defaults.bzl (#63383) 2025-08-25 15:45:01 -07:00
list_golden_update_rules.ts test(core): remove shelljs from core schematics tests (#64042) 2025-09-26 13:14:09 -04:00
test_case_schema.json feat(compiler-cli): add experimental support for fast type declaration emission (#61334) 2025-05-14 14:07:37 -07:00