Home / Function/ text() — vite Function Reference

text() — vite Function Reference

Architecture documentation for the text() function in hmr.js from the vite codebase.

Entity Profile

Dependency Diagram

graph TD
  5a1142a4_c011_e46c_4d6a_7ce041e561d1["text()"]
  5445e27d_29fb_ce45_60a4_df520bfbcecd["hmr.js"]
  5a1142a4_c011_e46c_4d6a_7ce041e561d1 -->|defined in| 5445e27d_29fb_ce45_60a4_df520bfbcecd
  0b1d0295_0e06_0bc3_a8fc_c3cfa0957f65["text()"]
  0b1d0295_0e06_0bc3_a8fc_c3cfa0957f65 -->|calls| 5a1142a4_c011_e46c_4d6a_7ce041e561d1
  style 5a1142a4_c011_e46c_4d6a_7ce041e561d1 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

playground/hmr-full-bundle-mode/hmr.js lines 9–11

function text(el, text) {
  document.querySelector(el).textContent = text
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does text() do?
text() is a function in the vite codebase, defined in playground/hmr-full-bundle-mode/hmr.js.
Where is text() defined?
text() is defined in playground/hmr-full-bundle-mode/hmr.js at line 9.
What calls text()?
text() is called by 1 function(s): text.

Analyze Your Own Codebase

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

Try Supermodel Free