Runtime Chunk とは?
runtime chunk は、他の chunk を実行時に読み込んで結び付ける役割を持つ bundler のボイラープレートを含む小さなファイルです。モジュールのレジストリと、動的な import を解決するロジックを保持します。これを独自のファイルへ抽出することで、頻繁に変化するその管理情報を、より大きく cache しやすい bundle の外に保てます。
なぜ重要か
runtime を分離すると、1 つの chunk の content hash の変更が他のすべてのファイルに波及しません。これにより deploy をまたいだ長期的な caching が有効なまま保たれます。
関連ガイド
What Is a Vendor Chunk?A vendor chunk is a separate bundle file that holds third-party library code, kept apart from application cod…
What Is a Code Splitting Strategy?A code splitting strategy is the plan a build uses to break a bundle into smaller chunks loaded on demand, so…
What Is a Bundle Analyzer?A bundle analyzer is a tool that visualizes a build output, showing which modules and dependencies take up th…