Home / Function/ addToHTMLProxyCache() — vite Function Reference

addToHTMLProxyCache() — vite Function Reference

Architecture documentation for the addToHTMLProxyCache() function in html.ts from the vite codebase.

Entity Profile

Dependency Diagram

graph TD
  bf28c3ed_1de7_8026_dca5_48657723b46c["addToHTMLProxyCache()"]
  f8fe0737_718a_5509_b722_473f207d5906["html.ts"]
  bf28c3ed_1de7_8026_dca5_48657723b46c -->|defined in| f8fe0737_718a_5509_b722_473f207d5906
  39f26be8_b1d9_a756_3043_474687a6bbb7["buildHtmlPlugin()"]
  39f26be8_b1d9_a756_3043_474687a6bbb7 -->|calls| bf28c3ed_1de7_8026_dca5_48657723b46c
  c7929a5b_9791_180a_9c0b_4f479fb4cf3f["devHtmlHook()"]
  c7929a5b_9791_180a_9c0b_4f479fb4cf3f -->|calls| bf28c3ed_1de7_8026_dca5_48657723b46c
  51afdf58_3045_64b1_cf5b_929b1091e877["get()"]
  bf28c3ed_1de7_8026_dca5_48657723b46c -->|calls| 51afdf58_3045_64b1_cf5b_929b1091e877
  style bf28c3ed_1de7_8026_dca5_48657723b46c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/vite/src/node/plugins/html.ts lines 139–152

export function addToHTMLProxyCache(
  config: ResolvedConfig,
  filePath: string,
  index: number,
  result: { code: string; map?: SourceMapInput },
): void {
  if (!htmlProxyMap.get(config)) {
    htmlProxyMap.set(config, new Map())
  }
  if (!htmlProxyMap.get(config)!.get(filePath)) {
    htmlProxyMap.get(config)!.set(filePath, [])
  }
  htmlProxyMap.get(config)!.get(filePath)![index] = result
}

Domain

Subdomains

Calls

Frequently Asked Questions

What does addToHTMLProxyCache() do?
addToHTMLProxyCache() is a function in the vite codebase, defined in packages/vite/src/node/plugins/html.ts.
Where is addToHTMLProxyCache() defined?
addToHTMLProxyCache() is defined in packages/vite/src/node/plugins/html.ts at line 139.
What does addToHTMLProxyCache() call?
addToHTMLProxyCache() calls 1 function(s): get.
What calls addToHTMLProxyCache()?
addToHTMLProxyCache() is called by 2 function(s): buildHtmlPlugin, devHtmlHook.

Analyze Your Own Codebase

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

Try Supermodel Free