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

Function closeBundle

packages/vite/rolldown.config.ts:395–406  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

393 )
394 },
395 closeBundle() {
396 if (this.meta.watchMode) return
397
398 const kb = size / 1000
399 if (kb > limit) {
400 this.error(
401 `Bundle size exceeded ${limit} kB, current size is ${kb.toFixed(
402 2,
403 )}kb.`,
404 )
405 }
406 },
407 }
408}
409

Callers

nothing calls this directly

Calls 1

errorMethod · 0.65

Tested by

no test coverage detected