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. 2 imports, 0 dependents.

Entity Profile

Dependency Diagram

graph LR
  b9913a09_0d7c_591e_7af0_72b962ac0088["index.svelte.js"]
  a1aa31f7_1fac_3739_ef3a_f7f1278c747a["async"]
  b9913a09_0d7c_591e_7af0_72b962ac0088 --> a1aa31f7_1fac_3739_ef3a_f7f1278c747a
  4076941f_01d8_e54b_a571_b95a5cd6c871["server"]
  b9913a09_0d7c_591e_7af0_72b962ac0088 --> 4076941f_01d8_e54b_a571_b95a5cd6c871
  style b9913a09_0d7c_591e_7af0_72b962ac0088 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import 'svelte/internal/flags/async';
import * as $ from 'svelte/internal/server';

export default function Async_const($$renderer) {
	if (true) {
		$$renderer.push('<!--[-->');

		let a;
		let b;

		var promises = $$renderer.run([
			async () => {
				a = (await $.save(1))();
			},

			() => {
				b = a + 1;
			}
		]);

		$$renderer.push(`<p>`);
		$$renderer.async([promises[1]], ($$renderer) => $$renderer.push(() => $.escape(b)));
		$$renderer.push(`</p>`);
	} else {
		$$renderer.push('<!--[!-->');
	}

	$$renderer.push(`<!--]-->`);
}

Domain

Subdomains

Functions

Dependencies

  • async
  • server

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, MessageProcessor subdomain.
What functions are defined in index.svelte.js?
index.svelte.js defines 1 function(s): Async_const.
What does index.svelte.js depend on?
index.svelte.js imports 2 module(s): async, server.
Where is index.svelte.js in the architecture?
index.svelte.js is located at packages/svelte/tests/snapshot/samples/async-const/_expected/server/index.svelte.js (domain: BuildSystem, subdomain: MessageProcessor, directory: packages/svelte/tests/snapshot/samples/async-const/_expected/server).

Analyze Your Own Codebase

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

Try Supermodel Free