import { enableProdMode } from "@angular/core" ; import { platformBrowserDynamic } from "@angular/platform-browser-dynamic" ; import { AppModule } from "./app/app.module" ; import { AppConfig } from "./environments/environment" ; if ( AppConfig . production ) { enableProdMode ( ) ; } declare global { interface Window { require : any ; Buffer : any ; } } platformBrowserDynamic ( ) . bootstrapModule ( AppModule , { preserveWhitespaces : false , } ) . catch ( ( err ) => console . error ( err ) ) ;