firebase / firebase/firebase-admin-node
[FR] Modular Import Support for Firebase Admin SDK
- 主要语言
- TypeScript
- 星标
- 1.7k
- 派生
- 419
- 平均合并
- 3 天 10 小时
- 30 天内合并 PR
- 16
描述
**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.
贡献指南
调研方向
Start by reviewing the existing firebase-admin/firestore entry point and comparing it with the frontend Firebase modular API described in the issue. The work is done when the Admin SDK supports the requested modular imports and server and frontend code can be shared as intended.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- node.js, typescript
- 领域
- api, backend
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 25/100