Issues with Bun's Tree Shaking for Effect Code

Hi, I'm using
bun
to build this Effect code. The generated result seems to be large ~ 200KB even after minified.

import * as Effect from 'effect';
const programe = Effect.Console.log('Hello world!');
Effect.Effect.runSync(programe);


build command:
bun build --outdir=dist --minify src/index.ts


Am I doing it right? It doesn't seem tree-shaken to me.
image.png
Was this page helpful?