| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
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 updateStyle, serves only bundled memoryFiles, and does not mount the normal transform middleware. plugin-rsc therefore has no valid transformed stylesheet URL to emit into streamed SSR HTML. Crawling the initial server graph is also insufficient because route-specific CSS can be discovered only during the RSC render. 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 |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Description
Fixes #1217.
This includes the build-only generateBundle guard also proposed in #1296 as part of the broader bundledDev integration.