Dead Code Elimination - CI/CD Glossary Definition
Dead code elimination is a compiler optimization that removes code whose results are never used or that can never be reached, reducing binary size and sometimes run time.
Versus tree shaking
Dead code elimination operates within a compilation unit on statements and values; tree shaking operates across modules on whole exports. Many bundlers do both.
Related guides
Tree Shaking - CI/CD Glossary DefinitionTree Shaking: Tree shaking is a build optimization that removes exports and modules that are never imported a…
Bundling - CI/CD Glossary DefinitionBundling: Bundling combines many source modules and their dependencies into a smaller number of output files,…
Minification - CI/CD Glossary DefinitionMinification: Minification rewrites source (typically JavaScript or CSS) to be smaller without changing behav…