Skip to content

Commit

Permalink
Leverage provideAnimationsAsync() #10322
Browse files Browse the repository at this point in the history
For an initial total ~50KB smaller
  • Loading branch information
PowerKiKi committed Jul 16, 2024
1 parent 6c53b7e commit 9d6655a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import {enableProdMode, importProvidersFrom} from '@angular/core';
import {environment} from './environments/environment';
import {AppComponent} from './app/app.component';
import {provideAnimations} from '@angular/platform-browser/animations';
import {provideAnimationsAsync} from '@angular/platform-browser/animations/async';
import {bootstrapApplication, BrowserModule} from '@angular/platform-browser';

if (environment.production) {
enableProdMode();
}

bootstrapApplication(AppComponent, {
providers: [importProvidersFrom(BrowserModule), provideAnimations()],
providers: [importProvidersFrom(BrowserModule), provideAnimationsAsync()],
}).catch((err: unknown) => {
console.error(err);
});

0 comments on commit 9d6655a

Please sign in to comment.