nounderline
nounderline
DDeno
Created by nounderline on 12/2/2024 in #help
How to exclude code and imports from deno compile binary?
It's too bad deno compile doesn't do proper bundling. The whole idea is to provide optimized and lean binary. Without treeshaking things go really big (like my 200mb binary.)
11 replies
DDeno
Created by nounderline on 12/2/2024 in #help
How to exclude code and imports from deno compile binary?
Problem with dynamic import approach is that they will get included in the final binary built by deno compile. atm my binary weights almost 200mb because it includes all imports (including dynamic ones.)
11 replies
DDeno
Created by nounderline on 12/2/2024 in #help
How to exclude code and imports from deno compile binary?
deno compile doesn't execute the program and it statically analyze imports to amke sure it includes all files. I'm looking for a way to exclude pieces of code during that step.
11 replies
DDeno
Created by nounderline on 12/2/2024 in #help
How to exclude code and imports from deno compile binary?
Sorry for lack of clarity. I use deno compile and I'd like to exclude some development libraries that I don't need in production. I don't use any bundler
11 replies