@@ -48,11 +48,11 @@ export default defineConfig({
4848 // for production, add online assetPrefix here
4949 assetPrefix: ' http://localhost:3001/mf' ,
5050 },
51- // for storybook to dev
51+ // for Storybook to dev
5252 dev: {
5353 assetPrefix: ' http://localhost:3001/mf' ,
5454 },
55- // for storybook to dev
55+ // for Storybook to dev
5656 server: {
5757 port: 3001 ,
5858 },
@@ -88,9 +88,9 @@ However, if you want this Rslib Module to consume other producers at the same ti
8888
8989## Develop Module Federation remote module
9090
91- Rslib supports use ` storybook ` to develop Module Federation Rslib module
91+ Rslib support using Storybook to development Module Federation Rslib module.
9292
93- #### 1. install storybook and rsbuild storybook addon
93+ #### 1. Install Storybook and Rsbuild Storybook addon
9494
9595<PackageManagerTabs command = " install storybook storybook-addon-rslib @module-federation/storybook-addon -D" />
9696
@@ -117,7 +117,7 @@ Rslib supports use `storybook` to develop Module Federation Rslib module
117117/>
118118This chapter will use ` React App ` as an example later.
119119
120- #### 2. create ` .storybook/main.ts ` and add addons
120+ #### 2. Create ` .storybook/main.ts ` and add addons
121121
122122``` ts title=".storybook/main.ts" {13-35}
123123import { dirname , join } from ' node:path' ;
@@ -167,7 +167,7 @@ export default config;
167167#### 3. Start writing stories
168168
169169``` ts title="stories/index.stories.tsx" {1-2}
170- // load your remote module here, storybook like a host app
170+ // Load your remote module here, Storybook will act as the host app.
171171import { Counter } from ' rslib-module' ;
172172
173173const Component = () => <Counter />;
@@ -194,9 +194,9 @@ export const Primary = {};
194194}
195195```
196196
197- #### 5. Start storybook app
197+ #### 5. Start Storybook app
198198
199- There you go, start Storybook with ` npx storybook ` .
199+ There you go, start Storybook with ` npx storybook dev ` .
200200
201201## Consume other Module Federation modules
202202
0 commit comments