server.rsc
- Type:
boolean - Default:
false
Enable React Server Components (RSC) configuration.
When set to true, enables React Server Components support in Modern.js. This allows components to be rendered on the server, providing better performance and developer experience.
modern.config.ts
Prerequisites
Before enabling RSC, ensure:
- React and React DOM are upgraded to version 19 (recommended 19.2.4 or above)
- Install the
react-server-dom-rspack@0.0.1-beta.0dependency
For more information about using RSC, see the React Server Components guide.