Replies: 1 comment 3 replies
-
They should be tree-shaking... what version of AngularFire are you using? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'd like to enable analytics on a simple static page. I am currently using only web hosting from firebase and no other features. I'd like to add analytics to my project.
I have simple setup like this:
By importing
AngularFireAnalyticsModule
and building prod build i get 2 new chunks, one is firebase analytics and second one is firebase auth. Firebase analytics chunk is expected, but auth chunk is not. It has ~170kB which is quite heavy dependency for my simple app.Problem is that
UserTrackingService
is not tree-shakable and is always bundled even when it is not used.UserTrackingService
is importing and bringing whole firebase auth with it.It would be nice if both
UserTrackingService
andScreenTrackingService
were tree-shakable.Used versions:
Beta Was this translation helpful? Give feedback.
All reactions