Home / Function/ info() — vite Function Reference

info() — vite Function Reference

Architecture documentation for the info() function in pluginContainer.ts from the vite codebase.

Entity Profile

Dependency Diagram

graph TD
  7e22b0a1_210d_c2ca_9a20_17eec3acb06f["info()"]
  25e1bd14_1d67_d32d_fef1_fa2f005ed7c1["BasicMinimalPluginContext"]
  7e22b0a1_210d_c2ca_9a20_17eec3acb06f -->|defined in| 25e1bd14_1d67_d32d_fef1_fa2f005ed7c1
  6e54f0cf_c38f_43ff_3f57_61498112dbbe["info()"]
  6e54f0cf_c38f_43ff_3f57_61498112dbbe -->|calls| 7e22b0a1_210d_c2ca_9a20_17eec3acb06f
  94ad7f99_b02e_152e_c5a9_749d6de8d3c0["buildEnvironment()"]
  94ad7f99_b02e_152e_c5a9_749d6de8d3c0 -->|calls| 7e22b0a1_210d_c2ca_9a20_17eec3acb06f
  5f780e97_091a_dfa9_1506_327f54d41dca["onRollupLog()"]
  5f780e97_091a_dfa9_1506_327f54d41dca -->|calls| 7e22b0a1_210d_c2ca_9a20_17eec3acb06f
  dd164f22_a6d3_7e8d_43c3_45e219e70176["invalidateModule()"]
  dd164f22_a6d3_7e8d_43c3_45e219e70176 -->|calls| 7e22b0a1_210d_c2ca_9a20_17eec3acb06f
  8f73b680_d5b9_383c_f695_c906b80fb1e6["handleHMRUpdate()"]
  8f73b680_d5b9_383c_f695_c906b80fb1e6 -->|calls| 7e22b0a1_210d_c2ca_9a20_17eec3acb06f
  f64686c5_88e2_949b_57b5_197f77dea3a7["updateModules()"]
  f64686c5_88e2_949b_57b5_197f77dea3a7 -->|calls| 7e22b0a1_210d_c2ca_9a20_17eec3acb06f
  e12a7f9f_5bba_d2ce_ea02_83d281750727["restartServer()"]
  e12a7f9f_5bba_d2ce_ea02_83d281750727 -->|calls| 7e22b0a1_210d_c2ca_9a20_17eec3acb06f
  6f83f2b5_cff0_a52d_8544_cf0e1f4689fb["restartServerWithUrls()"]
  6f83f2b5_cff0_a52d_8544_cf0e1f4689fb -->|calls| 7e22b0a1_210d_c2ca_9a20_17eec3acb06f
  8bf1c22d_2b9a_8324_6d8c_7f01c0a9903e["_normalizeRawLog()"]
  7e22b0a1_210d_c2ca_9a20_17eec3acb06f -->|calls| 8bf1c22d_2b9a_8324_6d8c_7f01c0a9903e
  6e54f0cf_c38f_43ff_3f57_61498112dbbe["info()"]
  7e22b0a1_210d_c2ca_9a20_17eec3acb06f -->|calls| 6e54f0cf_c38f_43ff_3f57_61498112dbbe
  176d3c88_57c7_304f_2535_f2d1054b5048["buildErrorMessage()"]
  7e22b0a1_210d_c2ca_9a20_17eec3acb06f -->|calls| 176d3c88_57c7_304f_2535_f2d1054b5048
  style 7e22b0a1_210d_c2ca_9a20_17eec3acb06f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/vite/src/node/server/pluginContainer.ts lines 688–692

  info(rawLog: string | RollupLog | (() => string | RollupLog)): void {
    const log = this._normalizeRawLog(rawLog)
    const msg = buildErrorMessage(log, [`info: ${log.message}`], false)
    this._logger.info(msg, { clear: true, timestamp: true })
  }

Domain

Subdomains

Frequently Asked Questions

What does info() do?
info() is a function in the vite codebase, defined in packages/vite/src/node/server/pluginContainer.ts.
Where is info() defined?
info() is defined in packages/vite/src/node/server/pluginContainer.ts at line 688.
What does info() call?
info() calls 3 function(s): _normalizeRawLog, buildErrorMessage, info.
What calls info()?
info() is called by 8 function(s): buildEnvironment, handleHMRUpdate, info, invalidateModule, onRollupLog, restartServer, restartServerWithUrls, updateModules.

Analyze Your Own Codebase

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

Try Supermodel Free