Home / File/ index.js — svelte Source File

index.js — svelte Source File

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

File javascript SharedInternal BitFlags 19 dependents 4 functions

Entity Profile

Dependency Diagram

graph LR
  3c211218_0172_f6af_dd4f_da8028a531fc["index.js"]
  717fc8d5_bdb4_4b73_d6c5_c4a367a60cf2["index-client.js"]
  717fc8d5_bdb4_4b73_d6c5_c4a367a60cf2 --> 3c211218_0172_f6af_dd4f_da8028a531fc
  48cf26f8_bf34_fd7a_3d52_cc963051e167["context.js"]
  48cf26f8_bf34_fd7a_3d52_cc963051e167 --> 3c211218_0172_f6af_dd4f_da8028a531fc
  9a9bbc27_46b6_021c_6d77_f736ed4b40f0["operations.js"]
  9a9bbc27_46b6_021c_6d77_f736ed4b40f0 --> 3c211218_0172_f6af_dd4f_da8028a531fc
  fd0db0bf_b4fa_ebb0_bf50_f72fe589aea4["hydratable.js"]
  fd0db0bf_b4fa_ebb0_bf50_f72fe589aea4 --> 3c211218_0172_f6af_dd4f_da8028a531fc
  71020d3b_ab64_9fea_2a06_dab93412f92f["proxy.js"]
  71020d3b_ab64_9fea_2a06_dab93412f92f --> 3c211218_0172_f6af_dd4f_da8028a531fc
  d8e42d9d_2e3c_635c_19d3_b946a4341c0f["batch.js"]
  d8e42d9d_2e3c_635c_19d3_b946a4341c0f --> 3c211218_0172_f6af_dd4f_da8028a531fc
  2fb8b3eb_7c25_3930_a184_09fab29d537f["deriveds.js"]
  2fb8b3eb_7c25_3930_a184_09fab29d537f --> 3c211218_0172_f6af_dd4f_da8028a531fc
  5094c0e2_0832_85dc_9c83_43e20571b709["props.js"]
  5094c0e2_0832_85dc_9c83_43e20571b709 --> 3c211218_0172_f6af_dd4f_da8028a531fc
  e5c35d51_28d8_9054_923d_b7f82a3c8dc2["sources.js"]
  e5c35d51_28d8_9054_923d_b7f82a3c8dc2 --> 3c211218_0172_f6af_dd4f_da8028a531fc
  bde4209f_8ffc_1594_4024_b1835a44bcf6["runtime.js"]
  bde4209f_8ffc_1594_4024_b1835a44bcf6 --> 3c211218_0172_f6af_dd4f_da8028a531fc
  46239c3c_fa5c_4027_3e6c_fb9b98f3e911["async.js"]
  46239c3c_fa5c_4027_3e6c_fb9b98f3e911 --> 3c211218_0172_f6af_dd4f_da8028a531fc
  4c934ed8_7760_6c61_743a_128b85247a11["legacy.js"]
  4c934ed8_7760_6c61_743a_128b85247a11 --> 3c211218_0172_f6af_dd4f_da8028a531fc
  657385da_c3ad_9c59_cc1e_8eab42283f05["tracing.js"]
  657385da_c3ad_9c59_cc1e_8eab42283f05 --> 3c211218_0172_f6af_dd4f_da8028a531fc
  2d51c6c9_d3dc_2c19_12a2_18adb2ef1c08["hydratable.js"]
  2d51c6c9_d3dc_2c19_12a2_18adb2ef1c08 --> 3c211218_0172_f6af_dd4f_da8028a531fc
  style 3c211218_0172_f6af_dd4f_da8028a531fc fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

/** True if experimental.async=true */
export let async_mode_flag = false;
/** True if we're not certain that we only have Svelte 5 code in the compilation */
export let legacy_mode_flag = false;
/** True if $inspect.trace is used */
export let tracing_mode_flag = false;

export function enable_async_mode_flag() {
	async_mode_flag = true;
}

/** ONLY USE THIS DURING TESTING */
export function disable_async_mode_flag() {
	async_mode_flag = false;
}

export function enable_legacy_mode_flag() {
	legacy_mode_flag = true;
}

export function enable_tracing_mode_flag() {
	tracing_mode_flag = true;
}

Subdomains

Frequently Asked Questions

What does index.js do?
index.js is a source file in the svelte codebase, written in javascript. It belongs to the SharedInternal domain, BitFlags subdomain.
What functions are defined in index.js?
index.js defines 4 function(s): disable_async_mode_flag, enable_async_mode_flag, enable_legacy_mode_flag, enable_tracing_mode_flag.
What files import index.js?
index.js is imported by 19 file(s): async.js, batch.js, context.js, deriveds.js, hydratable.js, hydratable.js, index-client.js, legacy-client.js, and 11 more.
Where is index.js in the architecture?
index.js is located at packages/svelte/src/internal/flags/index.js (domain: SharedInternal, subdomain: BitFlags, directory: packages/svelte/src/internal/flags).

Analyze Your Own Codebase

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

Try Supermodel Free