firebase / firebase/firebase-js-sdk

Function statements require a function name on production build

Open
#5,900 2 comments 0 reactions 0 assignees View on GitHub
api: auth needs-attention question stack:React
Dominant language
TypeScript
Stars
5.1k
Forks
1k
Avg merge
2d 21h
Merged PRs (30d)
37

Description

### [REQUIRED] Describe your environment

* Operating System version: MacOS 11.5
* Browser version: Chrome 96
* Firebase SDK version: 9.6.3
* Firebase Product: auth, database (auth, database, storage, etc)

### [REQUIRED] Describe the problem

This is exactly the same as #5674 and #5740
As explained on both two issues, when you use firebaseAuth on the production build you get this error on first page load.
I am using Vitejs as a bundler and the rest is basic cra react app

#### Steps to reproduce:

Not sure how to reproduce it other than triggering a production bundle with minification.

#### Relevant Code:

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.