Hacker News new | ask | show | jobs
by IshKebab 1815 days ago
> Think of dead code elimination as removing code that doesn't change the output, while tree shaking instead includes code that could run.

Those are both dead code elimination. Webpack even says:

> Tree shaking is a term commonly used in the JavaScript context for dead-code elimination.