Skip to content

Commit 2dcdf9a

Browse files
committed
fix(router): mark router_resource module-level symbols as side-effect free
Top-level Symbol() calls in router_resource.ts lacked /* @__PURE__ */ annotations, preventing bundlers like esbuild and Rollup from tree-shaking the module and its dependencies when provideRouter() is used without withRouterResources(). Fixes #70696
1 parent c097c01 commit 2dcdf9a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/router/src/router_resource.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ import {
3333
NavigationCancellationCode,
3434
} from './events';
3535

36-
export const BLOCKING_SYMBOL: unique symbol = Symbol(
36+
export const BLOCKING_SYMBOL: unique symbol = /* @__PURE__ */ Symbol(
3737
typeof ngDevMode === 'undefined' || ngDevMode ? '__isBlocking' : '',
3838
);
39-
export const SOURCE_RESOURCE_SYMBOL: unique symbol = Symbol(
39+
export const SOURCE_RESOURCE_SYMBOL: unique symbol = /* @__PURE__ */ Symbol(
4040
typeof ngDevMode === 'undefined' || ngDevMode ? '__sourceResource' : '',
4141
);
4242

0 commit comments

Comments
 (0)