Code Splitting - CI/CD用語集の定義
code splitting は bundle を chunk に分割し、ユーザーが現在のビューに必要なコードだけをダウンロードするようにします。
code splitting は、bundle をすべて一度にではなくオンデマンドでロードされる複数の小さな chunk に分割し、初期ロード時間を改善します。一般的に dynamic import やルート境界によってトリガーされます。
1 つの大きな bundle の代わりに、code splitting はアプリが遅延的に取得する複数の chunk を出力します。これにより初期ペイロードが削減され、first render が高速化されます。CI では、bundle 分析によって、splitting が各 chunk をサイズ budget 内に保っていることを検証できます。
関連ガイド
Dynamic Import - CI/CD Glossary DefinitionDynamic Import: A dynamic import is the `import()` expression that loads a module at runtime and returns a pr…
Chunk - CI/CD Glossary DefinitionChunk: A chunk is one of the output files a bundler produces when it splits code. Each chunk groups a set of…
Lazy Loading - CI/CD Glossary DefinitionLazy Loading: Lazy loading defers loading a resource or module until it is actually needed, rather than at in…