You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use [Rsbuild](https://rsbuild.dev/) to create a provider and call the following command:
172
-
173
-
<PackageManagerTabs
174
-
command={{
175
-
npm: 'npm create rsbuild@latest',
176
-
yarn: 'yarn create rsbuild',
177
-
pnpm: 'pnpm create rsbuild@latest',
178
-
bun: 'bun create rsbuild@latest',
179
-
}}
180
-
/>
181
-
182
-
183
-
> Complete the project creation according to the prompts.
184
-
185
-
```bash
186
-
? Input target folder -> federation_provider
187
-
? Select framework -> React
188
-
? Select language -> TypeScript
189
-
```
190
-
191
-
#### 2. Installing Module Federation Build Plugin
192
-
193
-
Following the steps above forinitializing the project, we created a `React` project named `federation_provider`. Execute the following commandsin sequence:
After the project starts, the `Manifest Link: http://localhost:3000/mf-manifest.json` message appears, which is the manifest information link for Module Federation.
304
-
305
-
### Creating a Consumer
306
-
307
-
#### 1. Initializing the Project
308
-
309
-
Use [Rsbuild](https://rsbuild.dev/) to create a consumer and call the following command:
310
-
311
-
<PackageManagerTabs
312
-
command={{
313
-
npm: 'npm create rsbuild@latest',
314
-
yarn: 'yarn create rsbuild',
315
-
pnpm: 'pnpm create rsbuild@latest',
316
-
bun: 'bun create rsbuild@latest',
317
-
}}
318
-
/>
319
-
320
-
321
-
> Complete the project creation according to the prompts.
322
-
323
-
```bash
324
-
? Input target folder -> federation_consumer
325
-
? Select framework -> React
326
-
? Select language -> TypeScript
327
-
```
328
-
329
-
#### 2. Installing Module Federation Build Plugin
330
-
331
-
Following the steps above forinitializing the project, we created a `React` project named `federation_consumer`. Execute the following commandsin sequence:
0 commit comments