From 4f4b246bbe110f8fb5e0b82a1277f7f1a7bc75ff Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Thu, 4 Jul 2024 01:48:06 +0200 Subject: [PATCH] refactor(angular, angular-standalone): remove enableProdMode() (#1838) Co-authored-by: Maria Hutt --- angular-standalone/base/src/main.ts | 6 ------ angular/base/src/main.ts | 6 ------ 2 files changed, 12 deletions(-) diff --git a/angular-standalone/base/src/main.ts b/angular-standalone/base/src/main.ts index c92596acc..db355ecf1 100644 --- a/angular-standalone/base/src/main.ts +++ b/angular-standalone/base/src/main.ts @@ -1,15 +1,9 @@ -import { enableProdMode } from '@angular/core'; import { bootstrapApplication } from '@angular/platform-browser'; import { RouteReuseStrategy, provideRouter, withPreloading, PreloadAllModules } from '@angular/router'; import { IonicRouteStrategy, provideIonicAngular } from '@ionic/angular/standalone'; import { routes } from './app/app.routes'; import { AppComponent } from './app/app.component'; -import { environment } from './environments/environment'; - -if (environment.production) { - enableProdMode(); -} bootstrapApplication(AppComponent, { providers: [ diff --git a/angular/base/src/main.ts b/angular/base/src/main.ts index 91ec6da5f..d8ea2c3c5 100644 --- a/angular/base/src/main.ts +++ b/angular/base/src/main.ts @@ -1,12 +1,6 @@ -import { enableProdMode } from '@angular/core'; import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; import { AppModule } from './app/app.module'; -import { environment } from './environments/environment'; - -if (environment.production) { - enableProdMode(); -} platformBrowserDynamic().bootstrapModule(AppModule) .catch(err => console.log(err));