deno compile tree-shaking
hey. when using
deno compile
to produce a single binary, is there any tree-shaking performed?
specifically, if i perform an import such as import * as yaml from "@std/yaml";
and then only use yaml.parse
and yaml.stringify
from the module, will the end bundle include the rest of the module, or only those two plus any dependencies?1 Reply
No, afaik there is no tree-shaking. Only modules that are not reachable from the entry point are excluded