Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

[FR] Modular Import Support for Firebase Admin SDK

Đang mở
#2,783 3 bình luận 4 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
node.js, typescript
Lĩnh vực
api, backend

Hướng nghiên cứu

Bắt đầu bằng cách xem xét entry point hiện có của firebase-admin/firestore và so sánh nó với Firebase modular API cho frontend được mô tả trong issue. Công việc hoàn tất khi Admin SDK hỗ trợ các import dạng modular được yêu cầu và code phía server và frontend có thể được dùng chung như dự định.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

api: core type: feature request

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.

Ngôn ngữ chính
TypeScript
Star
1.7k
Fork
419
Merge trung bình
4 ngày 20 giờ
Pull request đã merge (30 ngày)
16

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của firebase/firebase-admin-node

Tất cả issue của firebase/firebase-admin-node

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.