Home / File/ index.svelte.js — svelte Source File

index.svelte.js — svelte Source File

Architecture documentation for index.svelte.js, a javascript file in the svelte codebase. 3 imports, 0 dependents.

File javascript BuildSystem QualityControl 3 imports 2 functions

Entity Profile

Dependency Diagram

graph LR
  0d54a9a3_3600_e712_4477_e2b56742f852["index.svelte.js"]
  c4bedee0_53fb_d914_c60c_cfb205bc2b52["./Child.svelte"]
  0d54a9a3_3600_e712_4477_e2b56742f852 --> c4bedee0_53fb_d914_c60c_cfb205bc2b52
  a847d475_28e2_6e69_a137_e9b47aec897c["disclose-version"]
  0d54a9a3_3600_e712_4477_e2b56742f852 --> a847d475_28e2_6e69_a137_e9b47aec897c
  1a59b12b_63d5_2eb4_1881_6fb96dbdcb56["client"]
  0d54a9a3_3600_e712_4477_e2b56742f852 --> 1a59b12b_63d5_2eb4_1881_6fb96dbdcb56
  style 0d54a9a3_3600_e712_4477_e2b56742f852 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import 'svelte/internal/disclose-version';
import * as $ from 'svelte/internal/client';
import TextInput from './Child.svelte';

const snippet = ($$anchor) => {
	$.next();

	var text = $.text('Something');

	$.append($$anchor, text);
};

var root = $.from_html(`<!> `, 1);

export default function Bind_component_snippet($$anchor) {
	let value = $.state('');
	const _snippet = snippet;
	var fragment = root();
	var node = $.first_child(fragment);

	TextInput(node, {
		get value() {
			return $.get(value);
		},

		set value($$value) {
			$.set(value, $$value, true);
		}
	});

	var text_1 = $.sibling(node);

	$.template_effect(() => $.set_text(text_1, ` value: ${$.get(value) ?? ''}`));
	$.append($$anchor, fragment);
}

Domain

Subdomains

Dependencies

  • ./Child.svelte
  • client
  • disclose-version

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 2 function(s): Bind_component_snippet, snippet.
What does index.svelte.js depend on?
index.svelte.js imports 3 module(s): ./Child.svelte, client, disclose-version.
Where is index.svelte.js in the architecture?
index.svelte.js is located at packages/svelte/tests/snapshot/samples/bind-component-snippet/_expected/client/index.svelte.js (domain: BuildSystem, subdomain: QualityControl, directory: packages/svelte/tests/snapshot/samples/bind-component-snippet/_expected/client).

Analyze Your Own Codebase

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

Try Supermodel Free