Skip to content

Commit 7b49d09

Browse files
authored
docs: remove rsbuild plugin from rspack part (#3177)
1 parent 752537b commit 7b49d09

File tree

4 files changed

+2
-66
lines changed

4 files changed

+2
-66
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
["runtime", "rspack", "webpack", "rsbuild", "vite", "chrome-devtool", "type-prompt"]
1+
["runtime", "rsbuild", "rspack", "webpack", "vite", "chrome-devtool", "type-prompt"]

apps/website-new/docs/en/guide/basic/rspack.mdx

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -22,53 +22,21 @@ import { PackageManagerTabs } from '@theme';
2222
command={{
2323
npm: `
2424
npm add @module-federation/enhanced
25-
npm add @module-federation/rsbuild-plugin --save-dev
2625
`,
2726
yarn: `
2827
yarn add @module-federation/enhanced
29-
yarn add @module-federation/rsbuild-plugin --save-dev
3028
`,
3129
pnpm: `
3230
pnpm add @module-federation/enhanced
33-
pnpm add @module-federation/rsbuild-plugin --save-dev
3431
`,
3532
bun: `
3633
bun add @module-federation/enhanced
37-
bun add @module-federation/rsbuild-plugin --save-dev
3834
`,
3935
}}
4036
/>
4137

4238
### Register the Plugin
4339

44-
#### Rsbuild
45-
46-
In [Rsbuild](https://rsbuild.dev/), you can add the plugin in the `rsbuild.config.ts` file:
47-
48-
```ts title='rsbuild.config.js'
49-
import { defineConfig } from '@rsbuild/core';
50-
import { pluginModuleFederation } from '@module-federation/rsbuild-plugin';
51-
52-
export default defineConfig({
53-
output: {
54-
// This will affect the build output resource url prefix in production env
55-
assetPrefix: 'https://cdn.domain.com/path/to/project/',
56-
},
57-
server: {
58-
port: 2000,
59-
},
60-
plugins: [
61-
pluginModuleFederation({
62-
name: 'federation_provider',
63-
exposes: {
64-
'./button': './src/button.tsx',
65-
},
66-
shared: ['react', 'react-dom'],
67-
}),
68-
],
69-
});
70-
```
71-
7240
#### Rspack
7341

7442
In [Rspack](https://rspack.dev/), you can add the plugin in the `rspack.config.js` file:
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
["runtime", "rspack", "webpack", "rsbuild", "vite", "chrome-devtool", "type-prompt"]
1+
["runtime", "rsbuild", "rspack", "webpack", "vite", "chrome-devtool", "type-prompt"]

apps/website-new/docs/zh/guide/basic/rspack.mdx

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -22,53 +22,21 @@ import { PackageManagerTabs } from '@theme';
2222
command={{
2323
npm: `
2424
npm add @module-federation/enhanced
25-
npm add @module-federation/rsbuild-plugin --save-dev
2625
`,
2726
yarn: `
2827
yarn add @module-federation/enhanced
29-
yarn add @module-federation/rsbuild-plugin --save-dev
3028
`,
3129
pnpm: `
3230
pnpm add @module-federation/enhanced
33-
pnpm add @module-federation/rsbuild-plugin --save-dev
3431
`,
3532
bun: `
3633
bun add @module-federation/enhanced
37-
bun add @module-federation/rsbuild-plugin --save-dev
3834
`,
3935
}}
4036
/>
4137

4238
### 注册插件
4339

44-
#### Rsbuild
45-
46-
[Rsbuild](https://rsbuild.dev/) 中,你可以通过 `rsbuild.config.ts` 配置文件来添加插件:
47-
48-
```ts title='rsbuild.config.js'
49-
import { defineConfig } from '@rsbuild/core';
50-
import { pluginModuleFederation } from '@module-federation/rsbuild-plugin';
51-
52-
export default defineConfig({
53-
output: {
54-
// 这将影响生产环境中使用的产物路径前缀
55-
assetPrefix: 'https://cdn.domain.com/path/to/project/',
56-
},
57-
server: {
58-
port: 2000,
59-
},
60-
plugins: [
61-
pluginModuleFederation({
62-
name: 'federation_provider',
63-
exposes: {
64-
'./button': './src/button.tsx',
65-
},
66-
shared: ['react', 'react-dom'],
67-
}),
68-
],
69-
});
70-
```
71-
7240
#### Rspack
7341

7442
[Rspack](https://rspack.dev/) 中,你可以通过 `rspack.config.js` 配置文件来添加插件:

0 commit comments

Comments
 (0)