unresolved.ts — vite Source File
Architecture documentation for unresolved.ts, a typescript file in the vite codebase.
Entity Profile
Relationship Graph
Source Code
export const foo = 1
hmr('.app', foo)
if (import.meta.hot) {
import.meta.hot.accept(({ foo }) => {
log('(self-accepting 1) foo is now:', foo)
})
import.meta.hot.accept(({ foo }) => {
log('(self-accepting 2) foo is now:', foo)
})
import.meta.hot.dispose(() => {
log(`foo was:`, foo)
})
}
function hmr(key: string, value: unknown) {
;(globalThis.__HMR__ as any)[key] = String(value)
}
Domain
Subdomains
Functions
Source
Frequently Asked Questions
What does unresolved.ts do?
unresolved.ts is a source file in the vite codebase, written in typescript. It belongs to the ViteCore domain, ConfigEngine subdomain.
What functions are defined in unresolved.ts?
unresolved.ts defines 1 function(s): hmr.
Where is unresolved.ts in the architecture?
unresolved.ts is located at playground/hmr-ssr/unresolved.ts (domain: ViteCore, subdomain: ConfigEngine, directory: playground/hmr-ssr).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free