Home / Type/ ComponentServerTransformState Type — svelte Architecture

ComponentServerTransformState Type — svelte Architecture

Architecture documentation for the ComponentServerTransformState type/interface in types.d.ts from the svelte codebase.

Entity Profile

Dependency Diagram

graph TD
  36893907_3f85_4bbe_42af_ad7de26ff93e["ComponentServerTransformState"]
  5d2af25b_8333_2fbc_39ca_acd947b554a1["types.d.ts"]
  36893907_3f85_4bbe_42af_ad7de26ff93e -->|defined in| 5d2af25b_8333_2fbc_39ca_acd947b554a1
  style 36893907_3f85_4bbe_42af_ad7de26ff93e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/svelte/src/compiler/phases/3-transform/server/types.d.ts lines 17–36

export interface ComponentServerTransformState extends ServerTransformState {
	readonly analysis: ComponentAnalysis;
	readonly options: ValidatedCompileOptions;

	readonly init: Statement[];

	readonly hoisted: Array<Statement | ModuleDeclaration>;

	/** The SSR template  */
	readonly template: Array<Statement | Expression>;
	readonly namespace: Namespace;
	readonly preserve_whitespace: boolean;
	/** True if the current node is a) a component or render tag and b) the sole child of a block  */
	readonly is_standalone: boolean;
	/** Transformed async `{@const }` declarations (if any) and those coming after them */
	async_consts?: {
		id: Identifier;
		thunks: Expression[];
	};
}

Frequently Asked Questions

What is the ComponentServerTransformState type?
ComponentServerTransformState is a type/interface in the svelte codebase, defined in packages/svelte/src/compiler/phases/3-transform/server/types.d.ts.
Where is ComponentServerTransformState defined?
ComponentServerTransformState is defined in packages/svelte/src/compiler/phases/3-transform/server/types.d.ts at line 17.

Analyze Your Own Codebase

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

Try Supermodel Free