From fc94a18a2803b850d8cd03bd4e58bda0d9f2881f Mon Sep 17 00:00:00 2001 From: Alex Potsides Date: Thu, 11 Jan 2024 19:07:43 +0100 Subject: [PATCH] fix: point to esbuild bundle analysis tool instead of bundlebuddy It's prettier and works better. --- src/build/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/build/index.js b/src/build/index.js index c9500b20b..1f6c458fe 100644 --- a/src/build/index.js +++ b/src/build/index.js @@ -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)})`)