Add a way for the plugins to suggest devtools integration

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

Maintainer thường phản hồi trong vòng 2 ngày

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

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript, vite
Lĩnh vực
developer-experience

Hướng nghiên cứu

Start by reading the Vite plugin metadata and the existing code that displays devtools integration suggestions. The issue proposes a plugin property that the devtools can crawl, but does not identify files, explain the property format beyond an example, or define how registry-based suggestions relate to it. Done means plugins can declare suggestions and the devtools displays them in a way similar to the existing suggestions.

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

Mô tả

enhancement
Clear and concise description of the problem

Right now users have to find out the related devtools integration themselves. It would be nice to make it easier to find them out.

Suggested solution

Add a property to Vite plugins and let the devtools crawl the property of the plugins. For each property, show the suggested devtools integration

For example, if @sveltejs/vite-plugin-svelte has devtools.suggestion: ['@sveltejs/dummy-devtools-integration'], show a similar suggestion like the current existing ones:
image

Alternative

Maybe a registry or something 🤔

Additional context

No response

Validations
Ngôn ngữ chính
TypeScript
Star
1.2k
Fork
97
Merge trung bình
2 ngày 19 giờ
Pull request đã merge (30 ngày)
14

Chuẩn bị môi trường

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 vitejs/devtools

Tất cả issue của vitejs/devtools

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.