mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-12 19:25:10 +00:00
39 lines
710 B
TypeScript
39 lines
710 B
TypeScript
import { ManifestData, Dirs } from '../../interfaces';
|
|
|
|
export type Chunk = {
|
|
file: string;
|
|
imports: string[];
|
|
modules: string[];
|
|
}
|
|
|
|
export type CssFile = {
|
|
id: string;
|
|
code: string;
|
|
};
|
|
|
|
export class CompileError {
|
|
file: string;
|
|
message: string;
|
|
}
|
|
|
|
export interface CompileResult {
|
|
duration: number;
|
|
errors: CompileError[];
|
|
warnings: CompileError[];
|
|
chunks: Chunk[];
|
|
assets: Record<string, string>;
|
|
css_files: CssFile[];
|
|
|
|
to_json: (manifest_data: ManifestData, dirs: Dirs) => BuildInfo
|
|
}
|
|
|
|
export type BuildInfo = {
|
|
bundler: string;
|
|
shimport: string;
|
|
assets: Record<string, string>;
|
|
legacy_assets?: Record<string, string>;
|
|
css: {
|
|
main: string | null,
|
|
chunks: Record<string, string[]>
|
|
}
|
|
} |