Open jakearchibald opened 4 years ago
Hm, we should probably craft the README me here to establish a proper terminology.
For me, tree-shaking only talks about unused exports across a module boundary, while dead code elimination is taking care of unused private functions. Not sure it’s worth the distinction tho.
Yeah, eliminating if (false)
is different to unused imports, but not sure it matters.
imo, i do think it's worth the distinction.
feels like our site is about education and these distinguishing factors and terminology exist and are confusing for many, we have an opportunity to help bring clarity to it by not just defining it but showcasing the differences.
I think this is my fault. Bundling tools call it tree-shaking, so should we.