DenoDDeno
Powered by
subbedS
Denoβ€’9mo agoβ€’
1 reply
subbed

deno compile tree-shaking

hey. when using
deno compile
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";
import * as yaml from "@std/yaml";
and then only use
yaml.parse
yaml.parse
and
yaml.stringify
yaml.stringify
from the module, will the end bundle include the rest of the module, or only those two plus any dependencies?
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,944Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

deno compile optimizations
subbedSsubbed / help
13mo ago
deno compile error
AuxyAAuxy / help
15mo ago
Deno compile optimization
mallquestMmallquest / help
2y ago
Deno compile with --include
carragomCcarragom / help
5mo ago