TransformResult
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;
};
}
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)
- ParseResult
- RenderResult
- TransformResult
Index
Properties
Properties
ast
Parsed ast tree
code
code: string
Rendered CSS
errors
Parse errors
Optionalmap
Source map
Optionalmapping
mapping?: Record<string, string>
CSS module mapping
stats
stats: {
bytesIn: number;
bytesOut: number;
importedBytesIn: number;
imports: ParseResultStats[];
minify: string;
parse: string;
render: string;
src: string;
total: string;
}
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
Transform result object