bun build emits ESM, CJS, and IIFE from one source tree with AST-aware dead-code elimination. Use --packages=external for libraries so deps resolve at install time. --minify and https://www.valtersit.com/vault/bundle-and-treeshake-a-library-for-both-esm-and-cjs-consumer-57259a/
#bun #bundler #esm
