Skip to main content

Module merged_update

Module merged_update 

Source
Expand description

Shared wire-format types for merged ecmascript chunk updates.

These serde structures are the protocol contract sent to the JS HMR client (see applyEcmascriptMergedUpdateShared in the ecmascript runtime). Both the browser and node chunking contexts serialize into exactly this shape, so the definitions live here to keep the two runtimes from drifting apart on the wire format.

The turbo-tasks value types (*MergedChunkContent, *MergedChunkVersion, *ChunkContentMerger) cannot be generic and therefore remain per-runtime, but they all build and serialize these shared structs.

Structs§

EcmascriptMergedChunkAdded
A chunk that was newly added in this version.
EcmascriptMergedChunkDeleted
A chunk that was removed in this version.
EcmascriptMergedChunkPartial
A chunk that was present in both versions and whose module membership changed.
EcmascriptMergedUpdate
A merged update covering one or more ecmascript chunks that share a merger.
EcmascriptModuleEntry
The code (and source map) for a single module in a merged update.

Enums§

EcmascriptMergedChunkUpdate
Per-chunk portion of an EcmascriptMergedUpdate.