Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FR] Modular Import Support for Firebase Admin SDK #2783

Open
TrustyTechSG opened this issue Nov 21, 2024 · 1 comment
Open

[FR] Modular Import Support for Firebase Admin SDK #2783

TrustyTechSG opened this issue Nov 21, 2024 · 1 comment

Comments

@TrustyTechSG
Copy link

Is your feature request related to a problem? Please describe.
The current Firebase Admin JS SDK does not support modular imports similar to the frontend Firebase SDK. For example, in the frontend SDK, I can use modular imports like:

import { doc, getDoc } from "firebase/firestore";

Describe the solution you'd like
I would like the Firebase Admin SDK to support modular imports similar to the frontend SDK. For example:

import { doc, getDoc } from "firebase-admin/firestore";

This would align the Admin SDK with the frontend SDK’s modular API and provide a more consistent developer experience.

Describe alternatives you've considered
Creating a custom wrapper around the Admin SDK to mimic modular imports. However, this adds unnecessary complexity and maintenance overhead.

Additional context
We'd like to share code between server and frontend.

@google-oss-bot
Copy link

I found a few problems with this issue:

  • I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
  • This issue does not seem to follow the issue template. Make sure you provide all the required information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants