legacy_api() — svelte Function Reference
Architecture documentation for the legacy_api() function in legacy.js from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD 0e927d14_a7d1_8cce_a29a_2a2e604a85c7["legacy_api()"] e70d565a_b58f_b8a3_6358_70d749ddae50["legacy.js"] 0e927d14_a7d1_8cce_a29a_2a2e604a85c7 -->|defined in| e70d565a_b58f_b8a3_6358_70d749ddae50 5f62a2c0_8890_0e65_854f_6ea7e5cf18b3["component_api_changed()"] 0e927d14_a7d1_8cce_a29a_2a2e604a85c7 -->|calls| 5f62a2c0_8890_0e65_854f_6ea7e5cf18b3 style 0e927d14_a7d1_8cce_a29a_2a2e604a85c7 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/src/internal/client/dev/legacy.js lines 12–25
export function legacy_api() {
const component = component_context?.function;
/** @param {string} method */
function error(method) {
e.component_api_changed(method, component[FILENAME]);
}
return {
$destroy: () => error('$destroy()'),
$on: () => error('$on(...)'),
$set: () => error('$set(...)')
};
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does legacy_api() do?
legacy_api() is a function in the svelte codebase, defined in packages/svelte/src/internal/client/dev/legacy.js.
Where is legacy_api() defined?
legacy_api() is defined in packages/svelte/src/internal/client/dev/legacy.js at line 12.
What does legacy_api() call?
legacy_api() calls 1 function(s): component_api_changed.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free