exoego / esbuild-bundle-analyzer

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

Support glob in metafiles #16

Closed exoego closed 6 months ago

exoego commented 6 months ago

It is handy when you have multiple metafiles and the number occasionally changes.

Future enhancement https://github.com/exoego/esbuild-bundle-analyzer/issues/17

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 246.19 KB ‼️ +204.39 KB (+83.0%)
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/path-scurry/dist | ${{\color{Goldenrod}{ █████▊ }}}$ 23.4%, 47.72 KB | | node_modules/minimatch/dist | ${{\color{Goldenrod}{ █████▎ }}}$ 21.3%, 43.41 KB | | node_modules/lru-cache/dist | ${{\color{Goldenrod}{ ████▋ }}}$ 18.9%, 38.40 KB | | node_modules/glob/dist | ${{\color{Goldenrod}{ ███▋ }}}$ 14.9%, 30.34 KB | | node_modules/minipass/dist | ${{\color{Goldenrod}{ ███▏ }}}$ 12.6%, 25.71 KB | | src/compare.ts | ${{\color{Goldenrod}{ █ }}}$ 4.3%, 8.66 KB | | node_modules/brace-expansion/index.js | ${{\color{Goldenrod}{ ▌ }}}$ 2.3%, 4.78 KB | | src/report.ts | ${{\color{Goldenrod}{ ▏ }}}$ 0.9%, 1.77 KB | | node_modules/balanced-match/index.js | ${{\color{Goldenrod}{ ▏ }}}$ 0.8%, 1.54 KB | | src/index.ts | ${{\color{Goldenrod}{ ▏ }}}$ 0.5%, 1.01 KB | | src/utils.ts | ${{\color{Goldenrod}{ }}}$ 0.2%, 371 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.