runtime.js — vite Source File
Architecture documentation for runtime.js, a javascript file in the vite codebase. 0 imports, 3 dependents.
Entity Profile
Dependency Diagram
graph LR 8dd41c55_f0b6_f35a_f45e_efc93d7d897d["runtime.js"] caa44533_2cb6_7e8c_d140_b926d33afd64["child.js"] caa44533_2cb6_7e8c_d140_b926d33afd64 --> 8dd41c55_f0b6_f35a_f45e_efc93d7d897d 734a2ac2_7c1f_3c95_e1e7_22831c4c6ff9["index.js"] 734a2ac2_7c1f_3c95_e1e7_22831c4c6ff9 --> 8dd41c55_f0b6_f35a_f45e_efc93d7d897d f4b744ab_726f_2280_a7c4_89f3bc61e992["parent.js"] f4b744ab_726f_2280_a7c4_89f3bc61e992 --> 8dd41c55_f0b6_f35a_f45e_efc93d7d897d style 8dd41c55_f0b6_f35a_f45e_efc93d7d897d 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 = () => {
globalThis.__HMR__['.file-delete-restore'] = Object.values(state).join(':')
}
Domain
Subdomains
Functions
Imported By
Source
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-ssr/file-delete-restore/runtime.js (domain: ViteCore, subdomain: DevServer, directory: playground/hmr-ssr/file-delete-restore).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free