Skip to content

Commit

Permalink
fix: point to esbuild bundle analysis tool instead of bundlebuddy (#1447
Browse files Browse the repository at this point in the history
)

It's prettier and works better.
  • Loading branch information
achingbrain authored Jan 12, 2024
1 parent c948321 commit c5b96a3
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}`

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

0 comments on commit c5b96a3

Please sign in to comment.