Home / Function/ legacy_component_creation() — svelte Function Reference

legacy_component_creation() — svelte Function Reference

Architecture documentation for the legacy_component_creation() function in warnings.js from the svelte codebase.

Entity Profile

Dependency Diagram

graph TD
  0d904c38_bd28_9a6b_c31f_2f085bc973e8["legacy_component_creation()"]
  56a689f9_11c0_cc76_bd60_41bb6dc96475["warnings.js"]
  0d904c38_bd28_9a6b_c31f_2f085bc973e8 -->|defined in| 56a689f9_11c0_cc76_bd60_41bb6dc96475
  d7b99393_7b13_9251_3e40_42dacf82184e["ExpressionStatement()"]
  d7b99393_7b13_9251_3e40_42dacf82184e -->|calls| 0d904c38_bd28_9a6b_c31f_2f085bc973e8
  style 0d904c38_bd28_9a6b_c31f_2f085bc973e8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/svelte/src/compiler/warnings.js lines 618–620

export function legacy_component_creation(node) {
	w(node, 'legacy_component_creation', `Svelte 5 components are no longer classes. Instantiate them using \`mount\` or \`hydrate\` (imported from 'svelte') instead.\nhttps://svelte.dev/e/legacy_component_creation`);
}

Domain

Subdomains

Frequently Asked Questions

What does legacy_component_creation() do?
legacy_component_creation() is a function in the svelte codebase, defined in packages/svelte/src/compiler/warnings.js.
Where is legacy_component_creation() defined?
legacy_component_creation() is defined in packages/svelte/src/compiler/warnings.js at line 618.
What calls legacy_component_creation()?
legacy_component_creation() is called by 1 function(s): ExpressionStatement.

Analyze Your Own Codebase

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

Try Supermodel Free