Skip to content

Commit 950a554

Browse files
committed
fix(core): Ensure the ViewContext is retained after closure minification (angular#57903)
In order to survive closure minification correctly, static properties need to be annotated with `@nocollapse`. For more history, see angular#28050 PR Close angular#57903
1 parent a1f2298 commit 950a554

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/core/src/render3/view_context.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export class ViewContext {
1818

1919
/**
2020
* @internal
21+
* @nocollapse
2122
*/
2223
static __NG_ELEMENT_ID__ = injectViewContext;
2324
}

0 commit comments

Comments
 (0)