feat(rsc): initial bundledDev support#1297
Conversation
|
I tested this PR against a real application with #1295 applied and Vite 8.1.4. The client appeared to hydrate, but the test uncovered a correctness blocker around SSR CSS. Evidence:
The underlying problem is that bundledDev transforms client CSS into JavaScript calling Restoring source CSS URLs produces 404s. Avoiding the links makes SSR depend on JavaScript and still misses server-only styles. Custom CSS middleware, data URLs, or parsing Vite’s generated JavaScript would reproduce Vite internals and would not be an upstream-ready solution. This PR should therefore remain blocked and should not close #1217 until Vite exposes a server-side way to obtain servable bundled output URLs for CSS/modules and a safe full-rebuild operation for server-graph changes. Related Vite core API discussion: vitejs/vite#22991 |
Description
Fixes #1217.
This includes the build-only
generateBundleguard also proposed in #1296 as part of the broader bundledDev integration.