Function make_chunks

Source
pub async fn make_chunks(
    module_graph: Vc<ModuleGraph>,
    chunking_context: ResolvedVc<Box<dyn ChunkingContext>>,
    chunk_items_or_batches: Vec<ChunkItemOrBatchWithAsyncModuleInfo>,
    batch_groups: Vec<ResolvedVc<ChunkItemBatchGroup>>,
    key_prefix: RcStr,
    referenced_output_assets: ResolvedVc<OutputAssets>,
) -> Result<Vec<ResolvedVc<Box<dyn Chunk>>>>
Expand description

Creates chunks based on heuristics for the passed chunk_items. Also attaches referenced_output_assets to the first chunk.