fix(rsc): support setups without an SSR environment#562
Merged
Conversation
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.
hi-ogawa
approved these changes
Jul 12, 2025
Contributor
There was a problem hiding this comment.
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!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.