Search


Search something to see results

TransformResult

Transform result: the parse result and the render result

Hierarchy (View Summary)

Index

Accessors

Constructors

Methods

Properties

Parameters

Returns TransformResult

JSON representation: the css is serialized as a string, the bytes are not serialized

Returns Record<string, any>

Internal

length of the rendered css once decoded (result.code.length), without decoding it

Parameters

Returns number

arena: AstArena

arena the ast nodes are stored in

ast: number

Parsed ast tree: the id of the stylesheet node in TransformResult.arena

Render errors

map?: SourceMap

Source map

mapping?: Record<string, string>

CSS module mapping

Transform stats

write: Uint8Array

Rendered CSS, encoded as UTF-8

shape: TransformResult = ...

An instance is kept alive: the hidden class of the instances would otherwise be collected by a full garbage collection when no instance is alive, and the optimized code that depends on it discarded (deoptimized)