Wranger uses esbuild under the hood (
Wrangler uses esbuild under the hood (https://developers.cloudflare.com/workers/wrangler/bundling/).
Is there a way to configure it to output the esbuild meta file (https://esbuild.github.io/api/#metafile) to better understand the bundle it creates?
1 Reply
Poking around a bit, it might already create the metafile - and use it to output big packages in the bundle. But it is not persisted for the user?
Ok, understood that
esbuild()
does not write the metafile, but stores it in result.metafile
- and you have to write it to disk yourself. As far as I understand the wrangler code, that does not happen and there is no code or option to enable that.