Skip to content

Commit 7353054

Browse files
arturovtthePunderWoman
authored andcommitted
refactor(core): drop DEFER_BLOCK_DEPENDENCY_INTERCEPTOR in production (#59381)
`new` expressions are not dropped by default because they are considered side-effectful, even if they are not referenced anywhere in production mode. PR Close #59381
1 parent c82ad87 commit 7353054

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/core/src/defer/rendering.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ import {
6666
* This token is only injected in devMode
6767
*/
6868
export const DEFER_BLOCK_DEPENDENCY_INTERCEPTOR =
69-
new InjectionToken<DeferBlockDependencyInterceptor>('DEFER_BLOCK_DEPENDENCY_INTERCEPTOR');
69+
/* @__PURE__ */ new InjectionToken<DeferBlockDependencyInterceptor>(
70+
'DEFER_BLOCK_DEPENDENCY_INTERCEPTOR',
71+
);
7072

7173
/**
7274
* **INTERNAL**, token used for configuring defer block behavior.

0 commit comments

Comments
 (0)