-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.ts
More file actions
21 lines (19 loc) · 829 Bytes
/
Copy pathmain.ts
File metadata and controls
21 lines (19 loc) · 829 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import { provideZoneChangeDetection } from '@angular/core';
import { platformBrowser } from '@angular/platform-browser';
import { AppModule } from './app/app.module';
import { environment } from './environments/environment';
// Silence non-error console output in production (LDA-L11): the app ships ~55
// console.* calls (mostly catchError fallbacks) whose diagnostic detail has no
// audience in a production browser console. Errors and warnings are kept so real
// failures still surface.
if (environment.production) {
const noop = (): void => undefined;
console.log = noop;
console.debug = noop;
console.info = noop;
}
platformBrowser()
.bootstrapModule(AppModule, {
applicationProviders: [provideZoneChangeDetection({ eventCoalescing: true })],
})
.catch((err) => console.error(err));