Add a way for the plugins to suggest devtools integration

Offen
#642 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 2 Tagen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
48/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
typescript, vite

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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
Vorherrschende Sprache
TypeScript
Sterne
1.2k
Forks
97
Ø Merge
2 T. 19 Std.
Gemergte PRs (30 T.)
14

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus vitejs/devtools

Alle Issues in vitejs/devtools

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.