You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using backoff-rxjs in one of my angular projects and after analyzing my main bundle size I discovered my rxjs related imports are 126KB and this cannot be true. After some investigation I discovered the rxjs bundle is increasing astronomically when using the backoff-rxjs operator in my project.
I tested this behaviour on a freshly generated Angular CLI Project via ng new (CLI Version: 7.3.0). When building (ng build --prod) this simple project the rxjs related part in the main bundle is ~17KB. After importing retryBackoff and using it in the AppComponent like shown below, the rxjs related part in the main bundle is now at ~123.8KB. Mainly because wepback is packing the whole RXJS library inside the main bundle.
Hm... Indeed looks like all of RxJS is pulled in. I'm definitely not doing it in TS files, so the issue is somewhere else.
Maybe it's angular/angular-cli#9069 ?
Hello!
I am using backoff-rxjs in one of my angular projects and after analyzing my main bundle size I discovered my rxjs related imports are 126KB and this cannot be true. After some investigation I discovered the rxjs bundle is increasing astronomically when using the backoff-rxjs operator in my project.
I tested this behaviour on a freshly generated Angular CLI Project via
ng new
(CLI Version: 7.3.0). When building (ng build --prod
) this simple project the rxjs related part in the main bundle is ~17KB. After importingretryBackoff
and using it in theAppComponent
like shown below, the rxjs related part in the main bundle is now at ~123.8KB. Mainly because wepback is packing the whole RXJS library inside the main bundle.For source map visualation I used source-map-explorer.
Before usage of
retryBackoff
After usage of
retryBackoff
The text was updated successfully, but these errors were encountered: