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§
- Ecmascript
Merged Chunk Added - A chunk that was newly added in this version.
- Ecmascript
Merged Chunk Deleted - A chunk that was removed in this version.
- Ecmascript
Merged Chunk Partial - A chunk that was present in both versions and whose module membership changed.
- Ecmascript
Merged Update - A merged update covering one or more ecmascript chunks that share a merger.
- Ecmascript
Module Entry - The code (and source map) for a single module in a merged update.
Enums§
- Ecmascript
Merged Chunk Update - Per-chunk portion of an
EcmascriptMergedUpdate.