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

Function buildStart

packages/vite/src/node/plugins/css.ts:318–332  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

316 name: 'vite:css',
317
318 buildStart() {
319 // Ensure a new cache for every build (i.e. rebuilding in watch mode)
320 moduleCache = new Map<string, Record<string, string>>()
321 cssModulesCache.set(config, moduleCache)
322
323 removedPureCssFilesCache.set(config, new Map<string, RenderedChunk>())
324
325 preprocessorWorkerController = createPreprocessorWorkerController(
326 normalizeMaxWorkers(config.css.preprocessorMaxWorkers),
327 )
328 preprocessorWorkerControllerCache.set(
329 config,
330 preprocessorWorkerController,
331 )
332 },
333
334 async buildEnd() {
335 await preprocessorWorkerController?.close()

Callers

nothing calls this directly

Calls 3

normalizeMaxWorkersFunction · 0.85
setMethod · 0.45

Tested by

no test coverage detected