Skip to content

Commit 9d6655a

Browse files
committed
Leverage provideAnimationsAsync() #10322
For an initial total ~50KB smaller
1 parent 6c53b7e commit 9d6655a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
import {enableProdMode, importProvidersFrom} from '@angular/core';
22
import {environment} from './environments/environment';
33
import {AppComponent} from './app/app.component';
4-
import {provideAnimations} from '@angular/platform-browser/animations';
4+
import {provideAnimationsAsync} from '@angular/platform-browser/animations/async';
55
import {bootstrapApplication, BrowserModule} from '@angular/platform-browser';
66

77
if (environment.production) {
88
enableProdMode();
99
}
1010

1111
bootstrapApplication(AppComponent, {
12-
providers: [importProvidersFrom(BrowserModule), provideAnimations()],
12+
providers: [importProvidersFrom(BrowserModule), provideAnimationsAsync()],
1313
}).catch((err: unknown) => {
1414
console.error(err);
1515
});

0 commit comments

Comments
 (0)