feat: support cli generate diff report#1350
Merged
Conversation
✅ Deploy Preview for rsdoctor ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR adds CLI support for generating standalone HTML diff reports for bundle comparisons. The feature allows users to output bundle diff analysis as a self-contained HTML file instead of only serving it through a development server.
- Added
--htmland--outputCLI options for generating standalone HTML reports - Implemented HTML generation logic that inlines all CSS and JavaScript assets
- Enhanced the diff viewer to load compressed data from window globals when available
Reviewed Changes
Copilot reviewed 4 out of 5 changed files in this pull request and generated 6 comments.
| File | Description |
|---|---|
| packages/rspack-plugin/tsconfig.json | Removed unused baseUrl configuration |
| packages/components/src/pages/Resources/BundleDiff/DiffServerAPIProvider/index.tsx | Added support for loading diff data from window globals with decompression |
| packages/cli/src/commands/bundle-diff.ts | Implemented HTML generation functionality with asset inlining and data compression |
| packages/cli/package.json | Added @rsdoctor/client as dependency for HTML template access |
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
abf0125 to
97635a6
Compare
9aoy
previously approved these changes
Oct 17, 2025
feat: support rsdoctor cli to generate diff report html feat: support rsdoctor cli to generate diff report html feat: support rsdoctor cli to generate diff report html feat: support rsdoctor cli to generate diff report html
e62c46d to
8557185
Compare
9aoy
approved these changes
Oct 17, 2025
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.
Summary
feat: support cli generate diff report
Use the command
rsdoctor bundle-diff --html --baseline="xxx.json" --current="xxx.json"to generate a bundle diff report in HTML format, suitable for CI environments or sharing.Related Links