Fatih Aygün
Fatih Aygün
Here's the work I've done that @brillout refers to: https://github.com/cyco130/vavite (in particular the `@vavite/multibuild` and `@vavite/multibuild-cli` packages, in the last paragraph of the readme).
> And @cyco130's multibuild `buildSteps` may have the same issue, no? My idea was to extend it later with `requires` or something like that to support parallelization (effectively turning it...
Unfortunately it's an [upstream issue](https://github.com/vitejs/vite/issues/3288) with Vite: Vite's SSR transform don't support sourcemaps. There was [an effort](https://github.com/vitejs/vite/pull/3928) to make it work but it's not clear whether it's going forward. The...
I took a look at this recently to judge the amount of effort needed and to see if I could be of any help. It seems the biggest challenge is...
Yes, I also thought it was kind of inefficient to parse the HTML stream instead of remembering what styles are rendered. I would definitely prefer an implementation like you described...
Also, I inject script tags to serialize suspense cache and React doesn't seem to complain. Maybe the hydration engine just skips styles and scripts? [This comment](https://github.com/reactwg/react-18/discussions/110#discussioncomment-1464102) seems to imply so.
Thanks for the insights, I'll keep looking into it and experimenting as time permits.
> This project seems cool, I'll investigate more if I have time. Thank you for your interest and your suggestions. > className and style props apply to the inner img...
Thanks for reporting. It's one of those ESM/CJS issues again. Quickest fix is to add `ssr: { noExternal: ["@emotion/styled"] }` to the Vite config. I'll have a better look at...
The workaround above works, so closing this.