Skip to content

Conversation

jacob-ebey
Copy link
Contributor

@jacob-ebey jacob-ebey commented Jul 11, 2025

Description

When doing a "SPA" that fetches the RSC payload on boot the plugin currently falls over on production builds due to the lack of a configured rollup input.

When doing a "SPA" that fetches the RSC payload on boot the plugin currently falls over on production builds due to the lack of a configured rollup input.
Copy link
Contributor

@hi-ogawa hi-ogawa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! I just saw remix-run/react-router-templates#142 and you got no ssr working?

Technically for this case, we should build through rsc -> client -> rsc -> client to cover server references only imported through client. I had an incomplete example for SPA, but just removed it as I thought nobody would care 😄 #533

I'm happy to add back a minimal example in this repo as a test case. I'll probably merge this one as is and I'll adjust and add minimal demo and test case later. Or if you already have something, please feel free to push them here or new PR. Thanks!

@hi-ogawa hi-ogawa changed the title fix: support setups without an SSR environment fix(rsc): support setups without an SSR environment Jul 12, 2025
@hi-ogawa hi-ogawa merged commit 0fc7fcd into vitejs:main Jul 12, 2025
35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants