GoogleChromeLabs / tooling.report

tooling.report a quick way to determine the best build tool for your next web project, or if tooling migration is worth it, or how to adopt a tool's best practice into your existing configuration and code base.
https://tooling.report
Apache License 2.0
850 stars 49 forks source link

Dead code elimination -> Tree-shaking #148

Open jakearchibald opened 4 years ago

jakearchibald commented 4 years ago

I think this is my fault. Bundling tools call it tree-shaking, so should we.

surma commented 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.

jakearchibald commented 4 years ago

Yeah, eliminating if (false) is different to unused imports, but not sure it matters.

argyleink commented 4 years ago

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.