Rslib
This addon loads a reusable Rsbuild config from your Rslib configuration file so storybook-builder-rsbuild mirrors the same setup used by your library build.
It also lets you develop the mf (Module Federation) format inside Storybook.
See the React component library example for a full reference implementation.
Getting started
Installation
Install @rsbuild/core directly so the version that the addon and your framework package use is pinned in your own lockfile. Use this alongside the framework package from your project's framework guide (e.g. storybook-react-rsbuild).
Setup .storybook/main.ts
.storybook/main.ts
Or configure the addon manually:
.storybook/main.ts
Module Federation
Review the Rslib Module Federation documentation to prepare the mf output before loading it in Storybook.