root.js — vite Source File
Architecture documentation for root.js, a javascript file in the vite codebase. 1 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 1de55150_4403_f1a1_67d4_6b10d232fc79["root.js"] f1dae5d8_fde4_9da5_4687_32020edc1473["parent.js"] 1de55150_4403_f1a1_67d4_6b10d232fc79 --> f1dae5d8_fde4_9da5_4687_32020edc1473 style 1de55150_4403_f1a1_67d4_6b10d232fc79 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import './parent.js'
if (import.meta.hot) {
// Need to accept, to register a callback for HMR
import.meta.hot.accept(() => {
// Triggers full page reload because no importers
import.meta.hot.invalidate()
})
}
const root = document.querySelector('.invalidation-root')
// Non HMR-able behaviour
if (!root.innerHTML) {
root.innerHTML = 'Init'
}
Domain
Dependencies
Source
Frequently Asked Questions
What does root.js do?
root.js is a source file in the vite codebase, written in javascript. It belongs to the ViteCore domain.
What does root.js depend on?
root.js imports 1 module(s): parent.js.
Where is root.js in the architecture?
root.js is located at playground/hmr/invalidation/root.js (domain: ViteCore, directory: playground/hmr/invalidation).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free