Open m4r-v1n opened 1 year ago
Could be unrelated, but I noticed that bun does not treeshake some functions. In my case (a plain bun build file.js
), minify will preserve the bun-injected __require
function that isn't used anywhere. I'm removing it with bun build file.js | sed 's/import.meta/{}/'
😅
What version of Bun is running?
1.0.0
What platform is your computer?
Darwin 23.0.0 x86_64 i386
What steps can reproduce the bug?
What is the expected behavior?
out.js
should be about same size.What do you see instead?
esbuild's
out.js
is822.6 KB
bun'sout.js
is1554.10 KB