MCPcopy
hub / github.com/vitejs/vite / normalizeMaxWorkers

Function normalizeMaxWorkers

packages/vite/src/node/plugins/css.ts:3184–3188  ·  view source on GitHub ↗
(maxWorker: number | true | undefined)

Source from the content-addressed store, hash-verified

3182}
3183
3184const normalizeMaxWorkers = (maxWorker: number | true | undefined) => {
3185 if (maxWorker === undefined) return 0
3186 if (maxWorker === true) return undefined
3187 return maxWorker
3188}
3189
3190type PreprocessorWorkerController = ReturnType<
3191 typeof createPreprocessorWorkerController

Callers 1

buildStartFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected