Skip to content

feat: add vite version to devtools context and homepage#283

Open
webfansplz wants to merge 2 commits intomainfrom
feat/vite-version
Open

feat: add vite version to devtools context and homepage#283
webfansplz wants to merge 2 commits intomainfrom
feat/vite-version

Conversation

@webfansplz
Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings April 8, 2026 11:41
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR surfaces the running Vite version end-to-end by adding it to the DevTools node context, exposing it via the Vite “meta-info” RPC endpoint, and rendering it on the DevTools homepage.

Changes:

  • Add viteVersion to DevToolsNodeContext and populate it when creating the core DevTools context.
  • Include version in the vite:meta-info RPC response payload.
  • Display the Vite version in the Vite DevTools home page “Project” metadata section.

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated no comments.

File Description
packages/core/src/node/context.ts Imports Vite’s version and stores it on the created DevTools context (viteVersion).
packages/kit/src/types/vite-plugin.ts Extends DevToolsNodeContext type to include the new viteVersion field.
packages/vite/src/node/rpc/functions/vite-meta-info.ts Returns version as part of vite:meta-info RPC response.
packages/vite/src/app/pages/home.vue Adds a “Version” row to the home page project metadata display.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Apr 8, 2026

Open in StackBlitz

@vitejs/devtools

npm i https://pkg.pr.new/@vitejs/devtools@283

@vitejs/devtools-kit

npm i https://pkg.pr.new/@vitejs/devtools-kit@283

@vitejs/devtools-rolldown

npm i https://pkg.pr.new/@vitejs/devtools-rolldown@283

@vitejs/devtools-rpc

npm i https://pkg.pr.new/@vitejs/devtools-rpc@283

@vitejs/devtools-self-inspect

npm i https://pkg.pr.new/@vitejs/devtools-self-inspect@283

commit: fd44126

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants