Home / File/ runtime.js — vite Source File

runtime.js — vite Source File

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

File javascript ViteCore DevServer 3 dependents 3 functions

Entity Profile

Dependency Diagram

graph LR
  6de8a0fd_e0a8_c037_a679_2645e0f43466["runtime.js"]
  b79a888c_fa16_12af_f0da_92752e69a122["child.js"]
  b79a888c_fa16_12af_f0da_92752e69a122 --> 6de8a0fd_e0a8_c037_a679_2645e0f43466
  ade0ed60_faae_4ea2_a363_37d0b3d94365["index.js"]
  ade0ed60_faae_4ea2_a363_37d0b3d94365 --> 6de8a0fd_e0a8_c037_a679_2645e0f43466
  dec9e9ba_24a5_55fb_7edf_af95c8091f06["parent.js"]
  dec9e9ba_24a5_55fb_7edf_af95c8091f06 --> 6de8a0fd_e0a8_c037_a679_2645e0f43466
  style 6de8a0fd_e0a8_c037_a679_2645e0f43466 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

let state = {}

export const render = (newState) => {
  state = newState
  apply()
}

export const rerender = (updates) => {
  state = { ...state, ...updates }
  apply()
}

const apply = () => {
  document.querySelector('.file-delete-restore').textContent =
    Object.values(state).join(':')
}

Domain

Subdomains

Frequently Asked Questions

What does runtime.js do?
runtime.js is a source file in the vite codebase, written in javascript. It belongs to the ViteCore domain, DevServer subdomain.
What functions are defined in runtime.js?
runtime.js defines 3 function(s): apply, render, rerender.
What files import runtime.js?
runtime.js is imported by 3 file(s): child.js, index.js, parent.js.
Where is runtime.js in the architecture?
runtime.js is located at playground/hmr/file-delete-restore/runtime.js (domain: ViteCore, subdomain: DevServer, directory: playground/hmr/file-delete-restore).

Analyze Your Own Codebase

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

Try Supermodel Free