Skip to content

Commit

Permalink
fix: point to esbuild bundle analysis tool instead of bundlebuddy
Browse files Browse the repository at this point in the history
It's prettier and works better.
  • Loading branch information
achingbrain authored Jan 11, 2024
1 parent c948321 commit fc94a18
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/build/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,9 @@ const tasks = new Listr([
const maxsize = bytes(ctx.bundlesizeMax)
const diff = gzip - maxsize

task.output = 'Use https://www.bundle-buddy.com/ to load "./dist/stats.json".'
task.output = `Check previous sizes in https://bundlephobia.com/result?p=${pkg.name}@${pkg.version}`
task.output = 'Use https://esbuild.github.io/analyze/ to load "./dist/stats.json".'
// bundlephobia doesn't support exports maps properly
// task.output = `Check previous sizes in https://bundlephobia.com/result?p=${pkg.name}@${pkg.version}`

Check warning on line 100 in src/build/index.js

View check run for this annotation

Codecov / codecov/patch

src/build/index.js#L98-L100

Added lines #L98 - L100 were not covered by tests

if (diff > 0) {
throw new Error(`${bytes(gzip)} (▲${bytes(diff)} / ${bytes(maxsize)})`)
Expand Down

0 comments on commit fc94a18

Please sign in to comment.