Home / Function/ _normalizeRawLog() — vite Function Reference

_normalizeRawLog() — vite Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  8bf1c22d_2b9a_8324_6d8c_7f01c0a9903e["_normalizeRawLog()"]
  25e1bd14_1d67_d32d_fef1_fa2f005ed7c1["BasicMinimalPluginContext"]
  8bf1c22d_2b9a_8324_6d8c_7f01c0a9903e -->|defined in| 25e1bd14_1d67_d32d_fef1_fa2f005ed7c1
  20f96d74_dcf3_b3aa_4061_fdb53d4e3628["debug()"]
  20f96d74_dcf3_b3aa_4061_fdb53d4e3628 -->|calls| 8bf1c22d_2b9a_8324_6d8c_7f01c0a9903e
  7e22b0a1_210d_c2ca_9a20_17eec3acb06f["info()"]
  7e22b0a1_210d_c2ca_9a20_17eec3acb06f -->|calls| 8bf1c22d_2b9a_8324_6d8c_7f01c0a9903e
  3cf1d94a_16a2_96d6_7d1d_9757e22a2557["warn()"]
  3cf1d94a_16a2_96d6_7d1d_9757e22a2557 -->|calls| 8bf1c22d_2b9a_8324_6d8c_7f01c0a9903e
  style 8bf1c22d_2b9a_8324_6d8c_7f01c0a9903e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/vite/src/node/server/pluginContainer.ts lines 709–714

  private _normalizeRawLog(
    rawLog: string | RollupLog | (() => string | RollupLog),
  ): RollupLog {
    const logValue = typeof rawLog === 'function' ? rawLog() : rawLog
    return typeof logValue === 'string' ? new Error(logValue) : logValue
  }

Domain

Subdomains

Frequently Asked Questions

What does _normalizeRawLog() do?
_normalizeRawLog() is a function in the vite codebase, defined in packages/vite/src/node/server/pluginContainer.ts.
Where is _normalizeRawLog() defined?
_normalizeRawLog() is defined in packages/vite/src/node/server/pluginContainer.ts at line 709.
What calls _normalizeRawLog()?
_normalizeRawLog() is called by 3 function(s): debug, info, warn.

Analyze Your Own Codebase

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

Try Supermodel Free