Home / Function/ getSortedHotUpdatePlugins() — vite Function Reference

getSortedHotUpdatePlugins() — vite Function Reference

Architecture documentation for the getSortedHotUpdatePlugins() function in hmr.ts from the vite codebase.

Entity Profile

Dependency Diagram

graph TD
  48bd1440_14d9_820b_54ca_14e94bd0e603["getSortedHotUpdatePlugins()"]
  18db4f26_79f1_5b7d_b291_4feeaf95538f["hmr.ts"]
  48bd1440_14d9_820b_54ca_14e94bd0e603 -->|defined in| 18db4f26_79f1_5b7d_b291_4feeaf95538f
  8f73b680_d5b9_383c_f695_c906b80fb1e6["handleHMRUpdate()"]
  8f73b680_d5b9_383c_f695_c906b80fb1e6 -->|calls| 48bd1440_14d9_820b_54ca_14e94bd0e603
  d1f8b612_857c_d18a_b763_92f90bf93d2b["get()"]
  48bd1440_14d9_820b_54ca_14e94bd0e603 -->|calls| d1f8b612_857c_d18a_b763_92f90bf93d2b
  a393109c_bb70_6207_5c32_8d8eb5899aa0["getSortedPluginsByHotUpdateHook()"]
  48bd1440_14d9_820b_54ca_14e94bd0e603 -->|calls| a393109c_bb70_6207_5c32_8d8eb5899aa0
  57bd050c_f162_f6af_9491_3a9b3bcd5ca2["set()"]
  48bd1440_14d9_820b_54ca_14e94bd0e603 -->|calls| 57bd050c_f162_f6af_9491_3a9b3bcd5ca2
  style 48bd1440_14d9_820b_54ca_14e94bd0e603 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/vite/src/node/server/hmr.ts lines 361–368

function getSortedHotUpdatePlugins(environment: Environment): Plugin[] {
  let sortedPlugins = sortedHotUpdatePluginsCache.get(environment)
  if (!sortedPlugins) {
    sortedPlugins = getSortedPluginsByHotUpdateHook(environment.plugins)
    sortedHotUpdatePluginsCache.set(environment, sortedPlugins)
  }
  return sortedPlugins
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does getSortedHotUpdatePlugins() do?
getSortedHotUpdatePlugins() is a function in the vite codebase, defined in packages/vite/src/node/server/hmr.ts.
Where is getSortedHotUpdatePlugins() defined?
getSortedHotUpdatePlugins() is defined in packages/vite/src/node/server/hmr.ts at line 361.
What does getSortedHotUpdatePlugins() call?
getSortedHotUpdatePlugins() calls 3 function(s): get, getSortedPluginsByHotUpdateHook, set.
What calls getSortedHotUpdatePlugins()?
getSortedHotUpdatePlugins() is called by 1 function(s): handleHMRUpdate.

Analyze Your Own Codebase

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

Try Supermodel Free