Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bundle Size - includes entire @angular/fire

See original GitHub issue

Bug Report or Feature Request (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request


Angular CLI: 7.3.1
Node: 8.15.0
OS: darwin x64
Angular: 7.2.15
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, platform-server, router

Package                           Version
@angular-devkit/architect         0.13.9
@angular-devkit/build-angular     0.13.9
@angular-devkit/build-optimizer   0.13.9
@angular-devkit/build-webpack     0.13.9
@angular-devkit/core              7.3.1
@angular-devkit/schematics        7.3.1
@angular/cdk                      7.3.7
@angular/cli                      7.3.1
@angular/fire                     5.1.3
@angular/flex-layout              7.0.0-beta.24
@angular/material                 7.3.7
@ngtools/webpack                  7.3.9
@schematics/angular               7.3.1
@schematics/update                0.13.1
rxjs                              6.5.2
typescript                        3.2.4
webpack                           4.29.0

Repro steps

Just build app with this library using

  • ng build --prod --stats-json
  • and then npx webpack-bundle-analyzer <path-to-stats-json-in-dist>

The log given by the failure

Build with this library included (Parsed size: 1.73 MB) image

Desired functionality

Build without this library but still using firebase/auth (Parsed size: 1.11 MB) image

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

AnthonyNahascommented, Jun 2, 2019

@jeroenouw thanks for sharing! this is really awesome! I will try it now

AnthonyNahascommented, Feb 16, 2020

v4 is now release

this should fix this issue! Please consider reopening this ticket is you are still facing the same issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular huge bundle size due to angular and firebase modules
Smaller Angular framework download size. There's no need to download the Angular compiler if the app is already compiled.
Read more >
I dropped 95% of my Firebase bundle size using this one ...
Adding Firestore increased my bundle size nearly 300kbs. Webpack was right. This did impact web performance. I was about to have a bad...
Read more >
Optimize Angular bundle size in 4 steps | by Siyang Kern Zhao
This will give you a warning if you build Angular and the bundle size exceeds 2MB and throw an error if the bundle...
Read more >
Bundle Size Comparison in Firebase Modular SDK |
Explain how the new Firebase module can reduce the bundle size. It focuses on Cloud Firestore and Authentication bundle sizes, which are two...
Read more >
@angular/fire v7.5.0 Bundlephobia
Size of @angular/fire v7.5.0 is 61.4 kB (minified), and 18.3 kB when compressed using GZIP. Bundlephobia helps you find the performance impact of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found