Back to all fixes
CuratedTypeScriptVite 8local

Rolldown server build hangs indefinitely (deadlock) on large SSR apps with many SFC <style> blocks

Problem

`vite build` for the SSR/server environment never completes; the process sits at ~850MB RSS with 0% CPU. Sampling the hung process shows all worker-pool threads (tokio-runtime-workers and rolldown-workers) parked in `pthread_cond_wait`, indicating a genuine deadlock rather than slowness - a reentrancy deadlock between Rolldown's worker pool and the JS main thread during a CSS-heavy transform pass. `ROLLDOWN_MAX_BLOCKING_THREADS` has no effect at any value because the pool is idle, not saturated.

Solution

typescript
Fixed upstream by rolldown/rolldown PR #9031, released in Rolldown 1.0.0-rc.18 / Vite 8.0.11 - upgrade to at least that version. A reporter confirmed compiling the rolldown fork with that PR resolved the hang before the official release; on 8.0.11+ no manual workaround should be necessary.