index.svelte.js — svelte Source File
Architecture documentation for index.svelte.js, a javascript file in the svelte codebase. 3 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 40c0676d_6752_577a_e97e_52a74c3f6c0b["index.svelte.js"] a847d475_28e2_6e69_a137_e9b47aec897c["disclose-version"] 40c0676d_6752_577a_e97e_52a74c3f6c0b --> a847d475_28e2_6e69_a137_e9b47aec897c d687b44b_26f5_c190_e61f_74ec24b250f5["legacy"] 40c0676d_6752_577a_e97e_52a74c3f6c0b --> d687b44b_26f5_c190_e61f_74ec24b250f5 1a59b12b_63d5_2eb4_1881_6fb96dbdcb56["client"] 40c0676d_6752_577a_e97e_52a74c3f6c0b --> 1a59b12b_63d5_2eb4_1881_6fb96dbdcb56 style 40c0676d_6752_577a_e97e_52a74c3f6c0b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import 'svelte/internal/disclose-version';
import 'svelte/internal/flags/legacy';
import * as $ from 'svelte/internal/client';
var root_1 = $.from_html(`<button type="button">B</button>`);
export default function Delegated_locally_declared_shadowed($$anchor) {
var fragment = $.comment();
var node = $.first_child(fragment);
$.each(node, 0, () => ({ length: 1 }), $.index, ($$anchor, $$item, index) => {
var button = root_1();
$.set_attribute(button, 'data-index', index);
button.__click = (e) => {
const index = Number(e.currentTarget.dataset.index);
console.log(index);
};
$.append($$anchor, button);
});
$.append($$anchor, fragment);
}
$.delegate(['click']);
Domain
Subdomains
Functions
Dependencies
- client
- disclose-version
- legacy
Source
Frequently Asked Questions
What does index.svelte.js do?
index.svelte.js is a source file in the svelte codebase, written in javascript. It belongs to the BuildSystem domain, QualityControl subdomain.
What functions are defined in index.svelte.js?
index.svelte.js defines 1 function(s): Delegated_locally_declared_shadowed.
What does index.svelte.js depend on?
index.svelte.js imports 3 module(s): client, disclose-version, legacy.
Where is index.svelte.js in the architecture?
index.svelte.js is located at packages/svelte/tests/snapshot/samples/delegated-locally-declared-shadowed/_expected/client/index.svelte.js (domain: BuildSystem, subdomain: QualityControl, directory: packages/svelte/tests/snapshot/samples/delegated-locally-declared-shadowed/_expected/client).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free