デッドコード削除 - CI/CD用語集の定義
デッドコード削除は、結果が決して使われないコードや到達し得ないコードを取り除くコンパイラ最適化であり、バイナリサイズを削減し、場合によっては実行時間も短縮します。
ツリーシェイキングとの違い
デッドコード削除は、コンパイル単位の内部で文や値に対して働きます。ツリーシェイキングは、モジュールをまたいでexport全体に対して働きます。多くのbundlerは両方を行います。
関連ガイド
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…