serializePlate
serializePlate(
merged):Plate
Defined in: packages/xray/src/chunk.ts:87
Turn a merged plate (RenderNode tree) into the shipped plate (chunks). The root’s own content
classes travel as rootCls (the adapter puts them on the root element); its children become
chunks. A capture-less plate has null chunks and renders the fallback.
Two-artifact contract (ADR 0026): the returned Plate is the TREE artifact only; the input’s
css is deliberately NOT copied onto it. The css string stays the producer’s
(GatedPlate/StoredPlate) field, and each lowering site decides independently how its css
travels: the plugin’s virtual .css modules + export const css, captureElement’s { plate, css } pair, or the xray:plate dev event, which ships no css.
