Add a way for the plugins to suggest devtools integration

Open
#642 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
typescript, vite

Research direction

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.

Written by the indexing model from the issue text.

Description

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
Dominant language
TypeScript
Stars
1.2k
Forks
97
Avg merge
2d 19h
Merged PRs (30d)
14

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from vitejs/devtools

All issues in vitejs/devtools

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.