After implementing the following code:
if (window) {
window.console.log = () => { };
}
in my main.ts file to hide the console on production for Angular versions up to 8, I noticed that it no longer works for Angular 9 and above. Can anyone provide a solution to this issue?