Rslib
Rslib can use @module-federation/rsbuild-plugin to build Module Federation producers. It is a good fit when a component library, business module, or SSR producer needs to be published as an independent artifact for other apps to consume.
Quick Start
Installation
Register Plugin
rslib.config.ts
SSR
If you need to build both browser and Node.js artifacts, use target: 'dual' in the plugin options.
rslib.config.ts
For all plugin options, continue with Rsbuild plugin configuration.