hmr.js — vite Source File
Architecture documentation for hmr.js, a javascript file in the vite codebase. 1 imports, 1 dependents.
Entity Profile
Dependency Diagram
graph LR 5445e27d_29fb_ce45_60a4_df520bfbcecd["hmr.js"] 7d11fe83_c233_508b_7a3a_4bac74bc9d70["./asset.png"] 5445e27d_29fb_ce45_60a4_df520bfbcecd --> 7d11fe83_c233_508b_7a3a_4bac74bc9d70 344bff41_86ee_0656_747f_ad296f387185["main.js"] 344bff41_86ee_0656_747f_ad296f387185 --> 5445e27d_29fb_ce45_60a4_df520bfbcecd style 5445e27d_29fb_ce45_60a4_df520bfbcecd fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
export const foo = 'hello'
text('.hmr', foo)
import assetUrlImported from './asset.png'
export const assetUrl = assetUrlImported
text('.asset', assetUrl)
function text(el, text) {
document.querySelector(el).textContent = text
}
import.meta.hot?.accept((mod) => {
if (mod) {
text('.hmr', mod.foo)
text('.asset', mod.assetUrl)
}
})
Domain
Subdomains
Functions
Dependencies
- ./asset.png
Imported By
Source
Frequently Asked Questions
What does hmr.js do?
hmr.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 hmr.js?
hmr.js defines 1 function(s): text.
What does hmr.js depend on?
hmr.js imports 1 module(s): ./asset.png.
What files import hmr.js?
hmr.js is imported by 1 file(s): main.js.
Where is hmr.js in the architecture?
hmr.js is located at playground/hmr-full-bundle-mode/hmr.js (domain: ViteCore, subdomain: DevServer, directory: playground/hmr-full-bundle-mode).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free