Skip to content

Commit c5b96a3

Browse files
authored
fix: point to esbuild bundle analysis tool instead of bundlebuddy (#1447)
It's prettier and works better.
1 parent c948321 commit c5b96a3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/build/index.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,9 @@ const tasks = new Listr([
9595
const maxsize = bytes(ctx.bundlesizeMax)
9696
const diff = gzip - maxsize
9797

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

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

0 commit comments

Comments
 (0)