Skip to content

Importing auth from firebase to sign in with a provider significantly increases the bundle size. #1879

@asgarli

Description

@asgarli

I follow the example of signing in with Google, and I noticed that adding the line import { auth } from 'firebase'; adds extra 400kb to my application size. This seems a lot just for the auth.GoogleAuthProvider. Is this a bug with tree shaking? Can I import auth.GoogleAuthProvider from somewhere else? Is there a better way to import GoogleAuthProvider?

Note that this is the only place in my application where I'm importing something directly from 'firebase'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions