CompileResult Type — svelte Architecture
Architecture documentation for the CompileResult type/interface in index.d.ts from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD b1db6d2b_484e_b984_d422_f1eeac191e6c["CompileResult"] d1a9b9b5_cc04_9500_c39a_435c606b0766["index.d.ts"] b1db6d2b_484e_b984_d422_f1eeac191e6c -->|defined in| d1a9b9b5_cc04_9500_c39a_435c606b0766 style b1db6d2b_484e_b984_d422_f1eeac191e6c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/src/compiler/types/index.d.ts lines 14–50
export interface CompileResult {
/** The compiled JavaScript */
js: {
/** The generated code */
code: string;
/** A source map */
map: SourceMap;
};
/** The compiled CSS */
css: null | {
/** The generated code */
code: string;
/** A source map */
map: SourceMap;
/** Whether or not the CSS includes global rules */
hasGlobal: boolean;
};
/**
* An array of warning objects that were generated during compilation. Each warning has several properties:
* - `code` is a string identifying the category of warning
* - `message` describes the issue in human-readable terms
* - `start` and `end`, if the warning relates to a specific location, are objects with `line`, `column` and `character` properties
*/
warnings: Warning[];
/**
* Metadata about the compiled component
*/
metadata: {
/**
* Whether the file was compiled in runes mode, either because of an explicit option or inferred from usage.
* For `compileModule`, this is always `true`
*/
runes: boolean;
};
/** The AST */
ast: any;
}
Source
Frequently Asked Questions
What is the CompileResult type?
CompileResult is a type/interface in the svelte codebase, defined in packages/svelte/src/compiler/types/index.d.ts.
Where is CompileResult defined?
CompileResult is defined in packages/svelte/src/compiler/types/index.d.ts at line 14.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free