Home / File/ hmrDep.js — vite Source File

hmrDep.js — vite Source File

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

File javascript ViteCore 1 dependents

Entity Profile

Dependency Diagram

graph LR
  65483538_8ea1_5b64_c60b_f02b8cf38651["hmrDep.js"]
  2bff1ddd_39d7_0bc8_e313_78c6a7eae614["hmr.ts"]
  2bff1ddd_39d7_0bc8_e313_78c6a7eae614 --> 65483538_8ea1_5b64_c60b_f02b8cf38651
  style 65483538_8ea1_5b64_c60b_f02b8cf38651 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

export const foo = 1
export { foo as nestedFoo } from './hmrNestedDep'

if (import.meta.hot) {
  const data = import.meta.hot.data
  if ('fromDispose' in data) {
    console.log(`(dep) foo from dispose: ${data.fromDispose}`)
  }

  import.meta.hot.dispose((data) => {
    console.log(`(dep) foo was: ${foo}`)
    data.fromDispose = foo
  })
}

Domain

Imported By

Frequently Asked Questions

What does hmrDep.js do?
hmrDep.js is a source file in the vite codebase, written in javascript. It belongs to the ViteCore domain.
What files import hmrDep.js?
hmrDep.js is imported by 1 file(s): hmr.ts.
Where is hmrDep.js in the architecture?
hmrDep.js is located at playground/hmr/hmrDep.js (domain: ViteCore, directory: playground/hmr).

Analyze Your Own Codebase

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

Try Supermodel Free