3 ms·
You can run `deno compile` to build a standalone binary. https://deno.land/manual/tools/compiler https://deno.land/manual/tools/compiler
by JimDabell 3y ago
You can run `deno compile` to build a standalone binary.
https://deno.land/manual/tools/compiler https://deno.land/manual/tools/compiler
- j1elo 3y agoVery interesting, I just learned that Deno has direct support for doing this! Very useful, indeed. Thanks for mentioning it. Have you used it, to know what is the baseline size of the file it generates? e.g. the size of a "hello-world" command, which would be basically 99.9% composed of the runtime and core libraries.
- acdibble 3y agoIt’ll bundle the entire V8 engine. You can expect probably close to 80mb for a hello world app.
- JimDabell 3y agoI’m not sure about the size of a Hello World but a very small command-line tool I wrote is about 90MB, where the only substantial dependency is commander.js from NPM. I expect the vast majority of that is a constant size added to all binaries.