import '@angular/compiler' ; import { enableProdMode } from '@angular/core' ; import { platformBrowserDynamic } from '@angular/platform-browser-dynamic' ; import { AppModule } from './background.module' ; console . log ( 'init in main' ) ; if ( process . env . NODE_ENV === 'production' ) { enableProdMode ( ) ; } platformBrowserDynamic ( ) . bootstrapModule ( AppModule ) . catch ( ( err ) => console . log ( err ) ) ;