Home / Function/ normalizeMaxWorkers() — vite Function Reference

normalizeMaxWorkers() — vite Function Reference

Architecture documentation for the normalizeMaxWorkers() function in css.ts from the vite codebase.

Entity Profile

Dependency Diagram

graph TD
  1422383b_13a1_fdfb_4f71_7158fc0fe60c["normalizeMaxWorkers()"]
  c3eb47df_971b_0616_6c9f_29b3ded72224["css.ts"]
  1422383b_13a1_fdfb_4f71_7158fc0fe60c -->|defined in| c3eb47df_971b_0616_6c9f_29b3ded72224
  157cb972_609e_022e_1ec5_3ed6f7e4f45c["cssPlugin()"]
  157cb972_609e_022e_1ec5_3ed6f7e4f45c -->|calls| 1422383b_13a1_fdfb_4f71_7158fc0fe60c
  style 1422383b_13a1_fdfb_4f71_7158fc0fe60c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/vite/src/node/plugins/css.ts lines 3159–3163

const normalizeMaxWorkers = (maxWorker: number | true | undefined) => {
  if (maxWorker === undefined) return 0
  if (maxWorker === true) return undefined
  return maxWorker
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does normalizeMaxWorkers() do?
normalizeMaxWorkers() is a function in the vite codebase, defined in packages/vite/src/node/plugins/css.ts.
Where is normalizeMaxWorkers() defined?
normalizeMaxWorkers() is defined in packages/vite/src/node/plugins/css.ts at line 3159.
What calls normalizeMaxWorkers()?
normalizeMaxWorkers() is called by 1 function(s): cssPlugin.

Analyze Your Own Codebase

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

Try Supermodel Free