コード分割 - CI/CD用語集の定義
コード分割はbundleをオンデマンドで読み込まれる複数のchunkに分けることで、ユーザーは最初にアプリケーション全体を読み込むのではなく、ページが実際に必要とするコードだけをダウンロードします。
仕組み
動的な import() 呼び出しが分割ポイントになります。bundlerは個別のchunkと、runtimeがそれらを遅延取得するために使うマニフェストを出力します。
関連ガイド
Bundling - CI/CD Glossary DefinitionBundling: Bundling combines many source modules and their dependencies into a smaller number of output files,…
Tree Shaking - CI/CD Glossary DefinitionTree Shaking: Tree shaking is a build optimization that removes exports and modules that are never imported a…
Source Map - CI/CD Glossary DefinitionSource Map: A source map is a file that maps positions in compiled, minified, or bundled output back to the o…