exoego / esbuild-bundle-analyzer

Analyzes each PR's impact on esbuild bundle size
MIT License
15 stars 3 forks source link

Show top ten largest paths #11

Closed exoego closed 6 months ago

exoego commented 6 months ago

I tried tree map generation in #9, but attaching image to comment is not simple task. GitHub does not offer public API.

github-actions[bot] commented 6 months ago

📦 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 41.79 kB ‼️ +13.34 kB (+31.9%)
Top ten largest paths ## Meta file: tmp/meta.json, Out file: dist/index.mjs | Path | Size | |------|-------| | src/compare.ts | ${{\color{Goldenrod}{ █████████████▍ }}}$ 53.6%, 7.57 kB | | node_modules/filesize/dist | ${{\color{Goldenrod}{ ██████▉ }}}$ 27.6%, 3.89 kB | | src/report.ts | ${{\color{Goldenrod}{ ██▌ }}}$ 10.0%, 1.41 kB | | src/index.ts | ${{\color{Goldenrod}{ █▌ }}}$ 6.2%, 876 B | | src/utils.ts | ${{\color{Goldenrod}{ ▋ }}}$ 2.6%, 365 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.