-
Notifications
You must be signed in to change notification settings - Fork 375
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
feat: support rsc #6700
base: main
Are you sure you want to change the base?
feat: support rsc #6700
Conversation
|
✅ Deploy Preview for modernjs-byted ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
8f3659c
to
dc93c13
Compare
a9da5e0
to
fb6f72c
Compare
packages/cli/uni-builder/src/shared/rsc/plugins/rsbuild-rsc-plugin.ts
Outdated
Show resolved
Hide resolved
383dfae
to
d562e01
Compare
Summary
This PR is for supporting RSC in Modern.js, and currently supports SSR + RSC, CSR + RSC, and server action, and a new configuration
server.rsc
has been added for the project to enable RSC capability.It includes three parts of changes:
@modern-js/uni-builder
.@modern-js/runtime
.Runtime, mainly for the SDK required for RSC rendering, which is mainly in
@modern-js/render
and it only supports React19 now.Server, mainly for injecting the RSC manifests into the runtime and handle the req of RSC, which is in
@modenr-js/server-core
.The current implementation of the compilation section only supports webpack and will support rspack in the next release.
Related Links
Checklist
pnpm run change
.