deno
deno copied to clipboard
deno compile [--lite] [--static] ...
Feature request: compile JS/TS scripts with no dependency. To be used in IoT, IIoT, embedded devices etc.
In 1.10.2, deno compile is no --lite option. 😞
I also noticed that the —lite option has gone missing. I could not find any mention of that on the release notes. Is this a bug or was there a conscious decision to remove this? Final binary size is a concern for many types of applications (iot, cli), and I would certainly appreciate to see it back.
Removing lite binaries was a conscious decision. iirc it increased build time by too much.
Feature request: compile JS/TS scripts with no dependency
What do you mean by no dependency? Using deno compile you already get a self-contained executable that has exactly same requirements as running deno itself.
@MierenManz did it increase the compile time for non-lite builds?
I think having a longer compile time is a reasonable tradeoff if you want to ship the smallest binary possible.
Ah, I just bumped into this as well. Being able to generate smaller binaries is killer for dealing with more constrained environments. Anybody have any idea if this might be feasible anytime soon?
Ah, so the "build times" referenced up-thread weren't end-user binary build-times, but denos CI, that makes more sense. https://github.com/denoland/deno/pull/10350
I wouldn't mind building denort from source for this, can we provide an alternate deno binary to deno compile for it to pack?
I wouldn't mind building denort from source for this, can we provide an alternate deno binary to
deno compilefor it to pack?
I think it's a good compromise, I'm willing to accept a PR that adds a flag to custom binary.
@bartlomieju sorry I meant "no dependency = static linking". Maybe easier to have a statically linked Deno first.
would it be possible to have a lite-binary by utilizing system-bundled js-runtimes, a la https://neutralino.js.org ?
this should reduce file-sizes even further without increasing build-time?
What's the status on this issue? I'm building a CLI app on deno and i'd like to ship a binary
What's the status on this issue? I'm building a CLI app on deno and i'd like to ship a binary
Sorry, I started a new job and completely ran out of free time to mess around. someday i'd like to revisit this (and deno, in general), but for the time-being I'm stuck in nodeland. tiny deno binaries in an extremely minimal container will be veryvery nice