Add a way for the plugins to suggest devtools integration

Aperta
#642 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript, vite

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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
Lingua principale
TypeScript
Stelle
1.2k
Fork
97
Merge medio
2g 19h
PR unite (30g)
14

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di vitejs/devtools

Tutte le issue di vitejs/devtools

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.