`--metafile` flag released in wrangler!
Thrilled that my first PR for Cloudflare's wrangler just landed in v4.15.0! ๐ This PR adds a new
--metafile
flag to the wrangler CLI. This outputs esbuild's metafile, which can then be used to easily analyze your Cloudflare Worker's bundle size!
Update wrangler to v6.15.0 or newer, then simply run: npx wrangler deploy --dry-run --metafile=./meta.json && npx banal -M ./meta.json
(or add to your package.json file as analyze
).
This command uses banal โ it's a great tool by fabiospampinato that provides an offline version of esbuild's web analyzer. Makes peeking into your bundle super easy!
1 Reply
Release: https://github.com/cloudflare/workers-sdk/releases/tag/wrangler%404.15.0
Banal: https://github.com/fabiospampinato/banal
GitHub
Release [email protected] ยท cloudflare/workers-sdk
Minor Changes
#8794 02f0699 Thanks @eastlondoner! - This adds support for more accurate types for service bindings when running wrangler types. Previously, running wrangler types with a config in...
GitHub
GitHub - fabiospampinato/banal: On-demand bundle analyzer, powered ...
On-demand bundle analyzer, powered by esbuild. Contribute to fabiospampinato/banal development by creating an account on GitHub.