Search


Search something to see results

TransformResult

Transform result object

interface TransformResult {
    ast: AstStyleSheet;
    code: string;
    errors: ErrorDescription[];
    map?: SourceMap;
    mapping?: Record<string, string>;
    stats: {
        bytesIn: number;
        bytesOut: number;
        importedBytesIn: number;
        imports: ParseResultStats[];
        minify: string;
        parse: string;
        render: string;
        src: string;
        total: string;
    };
}

Hierarchy (View Summary)

Index

Properties

Parsed ast tree

code: string

Rendered CSS

Parse errors

map?: SourceMap

Source map

mapping?: Record<string, string>

CSS module mapping

stats: {
    bytesIn: number;
    bytesOut: number;
    importedBytesIn: number;
    imports: ParseResultStats[];
    minify: string;
    parse: string;
    render: string;
    src: string;
    total: string;
}

Transform stats

Type Declaration

  • bytesIn: number

    Bytes read

  • bytesOut: number

    Generated CSS size

  • importedBytesIn: number

    Bytes read from imported files

  • imports: ParseResultStats[]

    Imported files stats

  • minify: string

    Minify time

  • parse: string

    Parse time

  • render: string

    Render time

  • src: string

    Source file

  • total: string

    Total time