Skip to content

Commit

Permalink
refactor(core): drop DEFER_BLOCK_DEPENDENCY_INTERCEPTOR in producti…
Browse files Browse the repository at this point in the history
…on (angular#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 angular#59381
  • Loading branch information
arturovt authored and thePunderWoman committed Jan 7, 2025
1 parent 52a6710 commit d9707e1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/core/src/defer/rendering.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ import {
* This token is only injected in devMode
*/
export const DEFER_BLOCK_DEPENDENCY_INTERCEPTOR =
new InjectionToken<DeferBlockDependencyInterceptor>('DEFER_BLOCK_DEPENDENCY_INTERCEPTOR');
/* @__PURE__ */ new InjectionToken<DeferBlockDependencyInterceptor>(
'DEFER_BLOCK_DEPENDENCY_INTERCEPTOR',
);

/**
* **INTERNAL**, token used for configuring defer block behavior.
Expand Down

0 comments on commit d9707e1

Please sign in to comment.