-
-
Notifications
You must be signed in to change notification settings - Fork 186
fix(rsc): support setups without an SSR environment #562
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
There was a problem hiding this 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!
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.