Conversation
|
Hi @SyMind! Thank you for your pull request and welcome to our community. Action RequiredIn order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks! |
|
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks! |
ee86a52 to
8a3ca99
Compare
0aff295 to
1308431
Compare
1308431 to
09a271e
Compare
|
@sebmarkbage hi, would you like to review this PR? |
Summary
This adds a new
react-server-dom-rspackpackage, which is an RSC integration for the Parcel bundler. It is mostly copied from the existing webpack/turbopack integrations, with some changes to utilize Rspack runtime APIs for loading and executing bundles/modules.Differences from
react-server-dom-webpackTo better support Rspack's architecture and modern framework requirements,
react-server-dom-rspackintroduces several key enhancements:__rspack_rsc_manifest__compiler variable to provide manifest data directly to the RSC runtime.setServerCallbackandsetFindSourceMapURLCallback, enabling frameworks to configure global hooks in the browser environment.setServerActionBoundArgsEncryption,encryptServerActionBoundArgs, anddecryptServerActionBoundArgsto handle encryption for closure-captured arguments in inline Server Actions.loadServerAction: Exposes a standard way to load server actions.createServerEntry: Provides access to CSS and JS entry point information for the upper-level framework.This package is designed to work with Rspack v2.0+, which introduces built-in support for the RSC Plugin implementation in Rspack (introduced in web-infra-dev/rspack#12012)..
I have verified the integration with a working example project:
For testing purposes, I have published a pre-release version (
0.0.x) of this package to npm. I am happy to grant access to maintainers if needed for verification.Note: I've already published a 0.0.x version of this package to npm for testing purposes but happy to add whoever needs access to it as well.
How did you test this change?