Skip to main content

update_chunk_list

Function update_chunk_list 

Source
pub async fn update_chunk_list(
    chunks_contents: &FxIndexMap<String, ResolvedVc<Box<dyn VersionedContent>>>,
    to_version: Vc<ChunkListVersion>,
    from_version: ResolvedVc<Box<dyn Version>>,
) -> Result<Vc<Update>>
Expand description

Computes the update of a chunk list from one version to another.

Runtime-agnostic (takes plain paths + [VersionedContent]) so the browser and node chunking contexts can share one implementation instead of each duplicating the merge-by-[VersionedContentMerger] logic.