refactor(core): tree-shake NOT_SET and EMPTY_CLEANUP_SET (#60979)

Adds `__PURE__` annotations to `NOT_SET` and `EMPTY_CLEANUP_SET` to enable tree-shaking, even if they are not referenced. These variables are not dropped when Angular is imported from a module that has `sideEffects` set to `true`.

PR Close #60979
This commit is contained in:
arturovt
2025-04-23 17:14:33 +03:00
committed by Miles Malerba
parent d5fd7349fb
commit 77174680b2
@@ -40,8 +40,8 @@ import {LView} from '../interfaces/view';
import {ViewContext} from '../view_context';
import {assertNotInReactiveContext} from './asserts';
const NOT_SET = Symbol('NOT_SET');
const EMPTY_CLEANUP_SET = new Set<() => void>();
const NOT_SET = /* @__PURE__ */ Symbol('NOT_SET');
const EMPTY_CLEANUP_SET = /* @__PURE__ */ new Set<() => void>();
/** Callback type for an `afterRenderEffect` phase effect */
type AfterRenderPhaseEffectHook = (