Post

Vite 6.0 comes with Environment API, which RSC tightly depends on. Since the RSC model forces 3 bundles (client, SSR, and RSC) I'm curious if the only reason to split SSR/RSC bundlers is because you want to transform the RSC with the plugin, or is there any reason to have both in different servers?

0 reposts6 likes

on the client, you want to replace component into references and RSC actions into fetch calls on the server, you want to collect client components (and not so sure, but want to load with --conditions so useState and others error)

In server-reason-react we dont have this issue, but thats particular to having the transformations at the language level and not the bundler level It simplifies things, but the split for 2 targets is unavoidable