angular/packages/compiler-cli/src/ngtsc
Kristiyan Kostadinov f9b13e4e58 fix(compiler-cli): disable tree shaking during HMR (#59595)
When HMR is enabled, we need to capture the dependencies used in a template and forward them to the HMR replacement function. One half of this process is static, meaning that we can't change it after the initial compilation. Tree shaking becomes a problem in such a case, because the user can change the template in a way that changes the set of dependencies which will start matching with the static part of the HMR code.

These changes disable the tree shaking when HMR is enabled to ensure that the dependencies stay stable.

Fixes #59581.

PR Close #59595
2025-01-20 08:59:30 +01:00
..
annotations fix(compiler-cli): disable tree shaking during HMR (#59595) 2025-01-20 08:59:30 +01:00
core fix(compiler-cli): consider pre-release versions when detecting feature support (#59061) 2024-12-05 16:15:12 -08:00
cycles refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
diagnostics Revert "feat(compiler-cli): detect missing structural directive imports (#59443)" (#59544) 2025-01-15 13:38:37 -08:00
docs refactor(compiler-cli): extract function overload separatly (#56489) 2025-01-06 20:50:59 +00:00
entry_point refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
file_system refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
hmr fix(compiler-cli): handle more node types when extracting dependencies (#59445) 2025-01-09 12:22:46 -05:00
imports docs: capitalize webpack with a lowercase W (#56812) 2024-11-26 22:24:11 +00:00
incremental refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
indexer refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
logging refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
metadata fix(compiler-cli): do not fail fatal when references to non-existent module are discovered (#58515) 2024-11-06 13:04:22 +01:00
partial_evaluator refactor(compiler-cli): remove circular dep in the partial evaluator (#59083) 2024-12-05 16:01:14 -08:00
perf refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
program_driver refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
reflection docs: set syntax highlighting to the remaining Markdown code examples blocks (#59088) 2025-01-14 15:14:02 -05:00
resource refactor(compiler-cli): add inline stylesheet external runtime style transformation support (#57613) 2024-10-07 08:20:22 -07:00
scope fix(compiler-cli): do not fail fatal when references to non-existent module are discovered (#58515) 2024-11-06 13:04:22 +01:00
shims refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
sourcemaps refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
testing refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
transform feat(compiler-cli): generate the HMR replacement module (#58205) 2024-10-16 07:22:45 +00:00
translator docs: set syntax highlighting of code examples MD code blocks (#59026) 2024-12-04 17:30:28 +01:00
typecheck Revert "feat(compiler-cli): detect missing structural directive imports (#59443)" (#59544) 2025-01-15 13:38:37 -08:00
util refactor(compiler-cli): rework path normalization function (#58982) 2024-12-05 16:09:55 -08:00
validation fix(compiler-cli): error in unused standalone imports diagnostic (#59064) 2024-12-05 16:14:02 -08:00
xi18n refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
program.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
tsc_plugin.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00