Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[app] Make the `firebase` JS SDK an optional peer dependency (~90 MB installed on iOS/Android projects that never use it)

Aperta
#9,402 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
55/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
firebase, javascript, react-native, typescript

Direzione di ricerca

Start by reading the @react-native-firebase/app package manifest and its nativeModule.js platform resolution, then inspect the lib/internal/web/* imports that use firebase. Check how the package documents support for “Other” platforms. Done means native-only installs no longer pull in the web SDK, while apps targeting web or macOS are told to install it; the issue leaves the packaging approach open.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

type: enhancement
Summary

@react-native-firebase/app lists firebase (the web JS SDK) as a regular dependency. The JS SDK is only used by lib/internal/web/*, through nativeModule.js, for the "Other" platforms. On iOS and Android, Metro resolves nativeModule.ios.js / nativeModule.android.js, so the JS SDK is never bundled, but every React Native project still installs it.

Evidence
Suggested fix

Move firebase to peerDependencies with peerDependenciesMeta: { firebase: { optional: true } }, and document that apps targeting the "Other" platforms (web, macOS via Expo, etc.) must install it. Alternatively, publish the web implementation as a separate package.

Context

Found while auditing the installed node_modules of the Ledger Live monorepo (https://github.com/LedgerHQ/ledger-live), where we try to cut install size for developers and CI. Sizes are unpacked file bytes, measured from the published tarball (jsDelivr file listing) and from a real pnpm install. Happy to send a PR if the approach suits you.

Lingua principale
TypeScript
Stelle
12.3k
Fork
2.3k
Merge medio
1g 16h
PR unite (30g)
23

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di invertase/react-native-firebase

Tutte le issue di invertase/react-native-firebase

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.