Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add show_total_changes #80

Merged
merged 1 commit into from
Aug 14, 2024
Merged

feat: add show_total_changes #80

merged 1 commit into from
Aug 14, 2024

Conversation

exoego
Copy link
Owner

@exoego exoego commented Aug 14, 2024

Closes #75

Meta File | Out File  | Size (raw) | Note
----------|----------|-----------:|------
(Total) | - | 880.12 KB | ⚠️ +33.13 KB (+3.9%)
out/meta1.json | out/no-change.js | 732.99 KB | ✅  No change
out/meta2.json | out/bit-increased.js | 44.88 KB | ⚠️ +878 B (+2.0%)
out/meta2.json | out/decreased.js | 44.87 KB | ✅  -5.13 KB (-10.3%)
out/meta2.json | out/missing.js | 12.35 KB | 🗑️ Deleted
out/meta2.json | out/much-increased.js | 44.88 KB | ‼️ +24.88 KB (+124.4%)
out/meta2.json | out/new-outfile.js | 160 B | 🆕 Added

Example

Meta File Out File Size (raw) Note
(Total) - 880.12 KB ⚠️ +33.13 KB (+3.9%)
out/meta1.json out/no-change.js 732.99 KB ✅ No change
out/meta2.json out/bit-increased.js 44.88 KB ⚠️ +878 B (+2.0%)
out/meta2.json out/decreased.js 44.87 KB ✅ -5.13 KB (-10.3%)
out/meta2.json out/missing.js 12.35 KB 🗑️ Deleted
out/meta2.json out/much-increased.js 44.88 KB ‼️ +24.88 KB (+124.4%)
out/meta2.json out/new-outfile.js 160 B 🆕 Added

@exoego exoego added the enhancement New feature or request label Aug 14, 2024
@exoego exoego marked this pull request as ready for review August 14, 2024 07:39
Copy link

📦 esbuild Bundle Analysis for esbuild-bundle-analyzer

This analysis was generated by esbuild-bundle-analyzer. 🤖

Meta File Out File Size (raw) Note
tmp/meta.json dist/index.mjs 127.91 KB ⚠️ +2.21 KB (+1.8%)
Largest paths These visualization shows top 20 largest paths in the bundle.

Meta file: tmp/meta.json, Out file: dist/index.mjs

Path Size
node_modules/minimatch/dist ${{\color{Goldenrod}{ █████▏ }}}$ 20.5%, 18.21 KB
node_modules/path-scurry/dist ${{\color{Goldenrod}{ ████▊ }}}$ 19.4%, 17.23 KB
node_modules/lru-cache/dist ${{\color{Goldenrod}{ ████▋ }}}$ 18.7%, 16.61 KB
node_modules/glob/dist ${{\color{Goldenrod}{ ████▌ }}}$ 18.3%, 16.23 KB
node_modules/minipass/dist ${{\color{Goldenrod}{ ██▊ }}}$ 11.0%, 9.79 KB
src/compare.ts ${{\color{Goldenrod}{ █▋ }}}$ 6.7%, 5.94 KB
node_modules/brace-expansion/index.js ${{\color{Goldenrod}{ ▌ }}}$ 2.4%, 2.11 KB
src/report.ts ${{\color{Goldenrod}{ ▎ }}}$ 1.1%, 994 B
src/index.ts ${{\color{Goldenrod}{ ▏ }}}$ 0.9%, 810 B
node_modules/balanced-match/index.js ${{\color{Goldenrod}{ ▏ }}}$ 0.7%, 618 B
src/utils.ts ${{\color{Goldenrod}{ }}}$ 0.3%, 224 B
Details

Next to the size is how much the size has increased or decreased compared with the base branch of this PR.

  • ‼️: Size increased by 20% or more. Special attention should be given to this.
  • ⚠️: Size increased in acceptable range (lower than 20%).
  • ✅: No change or even downsized.
  • 🗑️: The out file is deleted: not found in base branch.
  • 🆕: The out file is newly found: will be added to base branch.

@exoego exoego merged commit 97edb31 into main Aug 14, 2024
4 checks passed
@exoego exoego deleted the show-total-changes branch August 14, 2024 07:41
@exoego exoego changed the title feat: add showTotalChanges feat: add show_total_changes Aug 14, 2024
@exoego exoego added chore and removed enhancement New feature or request labels Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feature-request: Display aggregated percentage of change in bundle size
1 participant