Skip to content

Commit 075145e

Browse files
arturovtAndrewKushnir
authored andcommitted
refactor(core): tree-shake PROPAGATION_STOPPED_SYMBOL (#61004)
Adds `__PURE__` annotations to `PROPAGATION_STOPPED_SYMBOL` to enable tree-shaking, even if is is not referenced. This variable is not dropped when Angular is imported from a module that has `sideEffects` set to `true`. PR Close #61004
1 parent 400dbc5 commit 075145e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/primitives/event-dispatch/src/event_dispatcher.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import {Restriction} from './restriction';
1919
export type Replayer = (eventInfoWrappers: Event[]) => void;
2020

2121
/** An internal symbol used to indicate whether propagation should be stopped or not. */
22-
export const PROPAGATION_STOPPED_SYMBOL = Symbol.for('propagationStopped');
22+
export const PROPAGATION_STOPPED_SYMBOL = /* @__PURE__ */ Symbol.for('propagationStopped');
2323

2424
/** Extra event phases beyond what the browser provides. */
2525
export const EventPhase = {

0 commit comments

Comments
 (0)