How to reduce deno compile binary size? #28536
Unanswered
HuakunShen
asked this question in
Q&A
Replies: 1 comment
-
I found the cause. It's because I have a deno workspace in the repo root. It bundles the entire workspace into the binary. This is also a pnpm workspace, bun doesn't have issue with bundling binary. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using
deno compile
in a package of a pnpm monorepo.It includes the entire monorepo, result in a huge size, I can't even run it.
The binary output of bun is 55MB and 65MB for nodejs compile by
@yao-pkg/pkg
.Command used
deno compile -A -o dist-backend/deno src/backend/deno.ts
Is there an exclude option or some other tools that can prevent deno from bundling all the
node_modules
and unnecessary files?Beta Was this translation helpful? Give feedback.
All reactions