Home / Function/ normalizeLog() — vite Function Reference

normalizeLog() — vite Function Reference

Architecture documentation for the normalizeLog() function in build.ts from the vite codebase.

Entity Profile

Dependency Diagram

graph TD
  1bf22d91_b870_29f0_5dde_71745942ce02["normalizeLog()"]
  45981d85_cbdd_e969_8c88_c17072ea0eda["build.ts"]
  1bf22d91_b870_29f0_5dde_71745942ce02 -->|defined in| 45981d85_cbdd_e969_8c88_c17072ea0eda
  16174712_0c01_7a74_cb0a_25c035192a06["normalizeUserOnWarn()"]
  16174712_0c01_7a74_cb0a_25c035192a06 -->|calls| 1bf22d91_b870_29f0_5dde_71745942ce02
  style 1bf22d91_b870_29f0_5dde_71745942ce02 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/vite/src/node/build.ts lines 1160–1161

const normalizeLog = (log: RollupLog | string): RollupLog =>
  typeof log === 'string' ? { message: log } : log

Domain

Subdomains

Frequently Asked Questions

What does normalizeLog() do?
normalizeLog() is a function in the vite codebase, defined in packages/vite/src/node/build.ts.
Where is normalizeLog() defined?
normalizeLog() is defined in packages/vite/src/node/build.ts at line 1160.
What calls normalizeLog()?
normalizeLog() is called by 1 function(s): normalizeUserOnWarn.

Analyze Your Own Codebase

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

Try Supermodel Free