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
Uh oh!
There was an error while loading. Please reload this page.
-
I am using
deno compilein 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.tsIs there an exclude option or some other tools that can prevent deno from bundling all the
node_modulesand unnecessary files?Beta Was this translation helpful? Give feedback.
All reactions