Conversation
@vitejs/devtools
@vitejs/devtools-kit
@vitejs/devtools-oxc
@vitejs/devtools-rolldown
@vitejs/devtools-vite
@vitejs/devtools-vitest
commit: |
Collaborator
Author
|
I compared the same build session in the running DevTools and the exported static report. Assets, Packages, and the Chunks graph showed data in the running DevTools. The static report displayed the session overview, but these three views had no data. The browser console reported that the corresponding queries were missing from the dump store, which holds the exported query results. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Important
Please take a moment to read this. Thank you!
I should include a brief explanation of the problem in my own words in every PR. If that explanation is missing, please @mention me and do not merge this PR until I have added it. You may also leave this PR unaddressed (because this means I have not fulfilled my responsibilities as the author).
If my explanation is unclear or difficult to follow, please ask me to clarify or provide reproduction steps or supporting evidence.
I welcome suggestions and counterarguments, especially questions about anything I may have overlooked. (Your feedback helps me learn and improve. 🙏)
I hold myself to this standard for every PR, regardless of its size.
When inspecting an existing build session, users can export a static DevTools report with
pnpm exec vite-devtools build. The exported report should let them inspect the same assets, packages, and chunks shown by the running DevTools server. The session overview loads, but Assets is blank, Packages showsNo data, and the Chunks graph has no nodes. These views cannot load their data because the export omits six RPC query results.Add export inputs for the asset list, package list, and chunks graph in every session, plus each asset, chunk, and package detail query. Package details use IDs from the same normalized manifest as the query handler. The existing query handlers stay unchanged. Reports contain more records, so export work and output size grow with the number of assets, chunks, and packages. Static builds remain experimental. Related CLI documentation corrections: #600.
Verification
Rechecked commit
95416d84:lodash-eswith 31 bundled files in its details, and the Chunks graph showed two nodes. No browser console errors were recorded while visiting these views.pnpm lint,pnpm typecheck, andpnpm buildpassed.