You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
perf(animations): use ngDevMode to tree-shake warning (#39964)
This commit adds ngDevMode guard to show warning only
in dev mode (similar to how things work in other parts of Ivy runtime code).
The ngDevMode flag helps to tree-shake this warning from production builds
(in dev mode everything will work as it works right now) to decrease production bundle size.
PR Close#39964
@@ -117,15 +116,6 @@ export class CssKeyframesDriver implements AnimationDriver {
117
116
player.onDestroy(()=>removeElement(kfElm));
118
117
returnplayer;
119
118
}
120
-
121
-
private_notifyFaultyScrubber(){
122
-
if(!this._warningIssued){
123
-
console.warn(
124
-
'@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n',
125
-
' visit https://bit.ly/IWukam to learn more about using the web-animation-js polyfill.');
@@ -146,3 +136,12 @@ function flattenKeyframesIntoStyles(keyframes: null|{[key: string]: any}|
146
136
functionremoveElement(node: any){
147
137
node.parentNode.removeChild(node);
148
138
}
139
+
140
+
letwarningIssued=false;
141
+
functionnotifyFaultyScrubber(): void{
142
+
if(warningIssued)return;
143
+
console.warn(
144
+
'@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n',
145
+
' visit https://bit.ly/IWukam to learn more about using the web-animation-js polyfill.');
0 commit comments