mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
11721509b0
This commit updates `@defer` logic related to incremental hydration to be tree-shakable. If hydrate triggers are used in a `@defer` block, the compiler emits a single top-level call to `ɵɵenableIncrementalHydrationRuntime`, placed once per create block before the first `ɵɵdefer` that requires it. As a result, the incremental hydration runtime is only included in the bundle when hydrate is explicitly used.