Skip to content

Reduce bundle size by refactoring Firebase SDK bindings to v9 modules #1107

@mundanelunacy

Description

@mundanelunacy

Do you want to request a feature or report a bug?

Feature. Firebase recently announced they would introduce tree shaking with version 9.

https://firebase.google.com/docs/web/modular-upgrade

Could reduce overall app footprint if react-redux-firebase bindings could be updated so that it only imports necessary modules.

What is the current behavior?

Firebase JSSDK footprint is usually 100Kb when bundled with a React App (Firebase auth, and firestore included)

What is the expected behavior?

  • Core functionality of react redux firebase remains intact despite >20% reduction in Firebase JSSDK footprint
  • Developers given option to use v9 modules or stay with v8 namespace

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions