Tools to shrink the output of deno compile?
Are there any tools to decrease the filesize of a
deno compile
d executable? I care primarily about Windows, but am interested in hearing about Linux options, too.4 Replies
This blog says 1.41 shrank the binaries from ~116MB to ~58MB, but deno 2 .exes are ~80MB
https://deno.com/blog/v1.41#smaller-deno-compile-binaries
Deno Blog
Deno 1.41: smaller deno compile binaries
We've roughly halved the size of
deno compile
binaries, added official Linux ARM64 builds, continued to land Node.js compatibility improvements, and more.Using Windows' / NTFS's built-in compression feature, I can reduce the size on disk by ~30MB
I'm guessing the 80MB is already a compile-specific build of
deno
with all the CLI tooling stripped out, deno fmt
, deno install
, etc?
since deno.exe
is 107MBcorrect