Skip to content

feat(vite): add HMR Inspector tab#374

Open
arashsheyda wants to merge 4 commits into
vitejs:mainfrom
arashsheyda:feat/hmr
Open

feat(vite): add HMR Inspector tab#374
arashsheyda wants to merge 4 commits into
vitejs:mainfrom
arashsheyda:feat/hmr

Conversation

@arashsheyda

Copy link
Copy Markdown
Contributor

Description

this PR adds HMR Inspector tab to vite devtools

Linked Issues

closes #232

Additional context

Screenshot 2026-06-04 at 4 48 54 PM

@pkg-pr-new

pkg-pr-new Bot commented Jun 4, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@vitejs/devtools@374
npm i https://pkg.pr.new/@vitejs/devtools-kit@374
npm i https://pkg.pr.new/@vitejs/devtools-rolldown@374
npm i https://pkg.pr.new/@vitejs/devtools-self-inspect@374

commit: 28cfa14

@antfu

antfu commented Jun 10, 2026

Copy link
Copy Markdown
Member

Thanks for the PR.

But can we make the UI a bit more compact? I think there is quite a lot of duplicate information. For example:

  1. I don't think the HMR update badge is necessary because the entire tab is already about HMR.
  2. For the file paths, I think we should make them relative to the workspace root. We can use the existing component we have in the Rolldown plugins that renders the file path.

I also wonder if we can provide more information. For example when a component triggers an HMR update, can we show what the boundary of the HMR is? We could even draw a graph of the updated files when a user clicks the HMR update to show the detail panel.

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.

hmr update page for vite devtools

2 participants