File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed
website/docs/en/guide/advanced Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -154,6 +154,7 @@ export default config;
154154### 3. Start writing stories
155155
156156``` ts title="stories/index.stories.tsx" {1-2}
157+ import React from ' react' ;
157158// Load your remote module here, Storybook will act as the host app.
158159import { Counter } from ' rslib-module' ;
159160
@@ -181,7 +182,20 @@ export const Primary = {};
181182}
182183```
183184
184- ### 5. Start Storybook app
185+ ### 5. Add Rslib ` mf dev ` command
186+
187+ ``` json title="package.json"
188+ {
189+ // ...
190+ "scripts" : {
191+ "dev" : " rslib mf dev"
192+ }
193+ }
194+ ```
195+
196+ And run ` npm run dev ` to start Module Federation development mode
197+
198+ ### 6. Start Storybook app
185199
186200There you go, start Storybook with ` npx storybook dev ` .
187201
You can’t perform that action at this time.
0 commit comments