Home / Type/ CompileResult Type — svelte Architecture

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
  5a0a9438_7e05_99f0_f8e3_d1cc72c3ad0a["CompileResult"]
  6bd9d090_a582_e05c_669e_d53d4e7245f2["index.d.ts"]
  5a0a9438_7e05_99f0_f8e3_d1cc72c3ad0a -->|defined in| 6bd9d090_a582_e05c_669e_d53d4e7245f2
  style 5a0a9438_7e05_99f0_f8e3_d1cc72c3ad0a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/svelte/types/index.d.ts lines 967–1003

	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;
	}

Frequently Asked Questions

What is the CompileResult type?
CompileResult is a type/interface in the svelte codebase, defined in packages/svelte/types/index.d.ts.
Where is CompileResult defined?
CompileResult is defined in packages/svelte/types/index.d.ts at line 967.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free