Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
o11c
5mo ago
0 comments
Share
Tree-shaking really only works for languages that are designed to be tree-shakable, which no web language is.
0 comments
default
newest
oldest
typpilol
5mo ago
Type/JavaScript are extremely tree shakable if using esm.. what makes you think it's not?
o11c
OP
5mo ago
Only at the most crude level. Ever heard of "virtual functions"?
typpilol
5mo ago
Runtime polymorphism is great but I wouldn't consider that to be tree shaking.
j
/
k
navigate · click thread line to collapse