Skip to content

feat: add the map of json data size to rspack_plugin_rsdoctor for use in rsdoctor#12927

Open
yifancong wants to merge 2 commits intov1.xfrom
feat/rsdoctor-json-size-v1
Open

feat: add the map of json data size to rspack_plugin_rsdoctor for use in rsdoctor#12927
yifancong wants to merge 2 commits intov1.xfrom
feat/rsdoctor-json-size-v1

Conversation

@yifancong
Copy link
Contributor

@yifancong yifancong commented Feb 3, 2026

Summary

Add the map of json data size to rspack_plugin_rsdoctor for use in rsdoctor.

This pull request introduces JSON module size collection and reporting in the Rsdoctor plugin, including post-tree-shaking sizes, with new data structures and a plugin hook to gather and integrate this data into the output. It also refactors asset collection for better readability and maintainability and improves inter-plugin integration by exposing necessary APIs and enhancing source map accuracy for JSON modules. These changes enhance module size analysis and asset reporting capabilities.

Related links

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

@yifancong yifancong changed the title Feat/rsdoctor json size v1 feat: rsdoctor json size Feb 3, 2026
@github-actions github-actions bot added the release: feature release: feature related release(mr only) label Feb 3, 2026
@yifancong yifancong force-pushed the feat/rsdoctor-json-size-v1 branch from dd60aa4 to 8f9a085 Compare February 3, 2026 09:47
@github-actions
Copy link
Contributor

github-actions bot commented Feb 3, 2026

Rsdoctor Bundle Diff Analysis

Found 5 projects in monorepo, 5 projects with changes.

📊 Quick Summary
Project Total Size Change
react-10k 5.7 MB -
react-1k 825.4 KB -
react-5k 2.7 MB -
rome 984.2 KB -
ui-components 2.1 MB -
📋 Detailed Reports (Click to expand)

📁 react-10k

Path: ../build-tools-performance/cases/react-10k/dist/rsdoctor-data.json

⚠️ No baseline data found - Unable to perform comparison analysis

Metric Current Baseline Change
📊 Total Size 5.7 MB - -
📄 JavaScript 5.7 MB - -
🎨 CSS 21.0 B - -
🌐 HTML 0 B - -
📁 Other Assets 0 B - -

📁 react-1k

Path: ../build-tools-performance/cases/react-1k/dist/rsdoctor-data.json

⚠️ No baseline data found - Unable to perform comparison analysis

Metric Current Baseline Change
📊 Total Size 825.4 KB - -
📄 JavaScript 825.4 KB - -
🎨 CSS 0 B - -
🌐 HTML 0 B - -
📁 Other Assets 0 B - -

📁 react-5k

Path: ../build-tools-performance/cases/react-5k/dist/rsdoctor-data.json

⚠️ No baseline data found - Unable to perform comparison analysis

Metric Current Baseline Change
📊 Total Size 2.7 MB - -
📄 JavaScript 2.7 MB - -
🎨 CSS 21.0 B - -
🌐 HTML 0 B - -
📁 Other Assets 0 B - -

📁 rome

Path: ../build-tools-performance/cases/rome/dist/rsdoctor-data.json

⚠️ No baseline data found - Unable to perform comparison analysis

Metric Current Baseline Change
📊 Total Size 984.2 KB - -
📄 JavaScript 984.2 KB - -
🎨 CSS 0 B - -
🌐 HTML 0 B - -
📁 Other Assets 0 B - -

📁 ui-components

Path: ../build-tools-performance/cases/ui-components/dist/rsdoctor-data.json

⚠️ No baseline data found - Unable to perform comparison analysis

Metric Current Baseline Change
📊 Total Size 2.1 MB - -
📄 JavaScript 2.0 MB - -
🎨 CSS 83.0 KB - -
🌐 HTML 0 B - -
📁 Other Assets 0 B - -

Generated by Rsdoctor GitHub Action

@github-actions
Copy link
Contributor

github-actions bot commented Feb 3, 2026

📦 Binary Size-limit

Comparing 5a5ef66 to chore(build): remove 'module.exports' export from dts for backward compatibility of TS < 5.6.2 (#12948) by Timeless0911

🎉 Size decreased by 538.88KB from 48.55MB to 48.03MB (⬇️1.08%)

@codspeed-hq
Copy link

codspeed-hq bot commented Feb 3, 2026

Merging this PR will not alter performance

✅ 16 untouched benchmarks
⏩ 1 skipped benchmark1


Comparing feat/rsdoctor-json-size-v1 (5a5ef66) with main (d97104c)2

Open in CodSpeed

Footnotes

  1. 1 benchmark was skipped, so the baseline result was used instead. If it was deleted from the codebase, click here and archive it to remove it from the performance reports.

  2. No successful run was found on v1.x (9041d93) during the generation of this report, so main (d97104c) was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

@yifancong yifancong force-pushed the feat/rsdoctor-json-size-v1 branch from 7921050 to 647411a Compare February 3, 2026 12:30
@yifancong yifancong marked this pull request as ready for review February 4, 2026 06:06
@yifancong yifancong changed the title feat: rsdoctor json size feat: add the map of json data size to rspack_plugin_rsdoctor for use in rsdoctor Feb 4, 2026
feat: rsdoctor plugin add json size

feat: rsdoctor plugin add json size

feat: rsdoctor plugin add json size
@yifancong yifancong force-pushed the feat/rsdoctor-json-size-v1 branch from 647411a to 7b8d901 Compare February 4, 2026 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release: feature release: feature related release(mr only)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant