Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
Timeless0911 committed Dec 23, 2024
1 parent 83bcfd5 commit 91f89f6
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions examples/module-federation/mf-react-component/rslib.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@ export default defineConfig({
dev: {
assetPrefix: 'http://localhost:3001/mf',
},
// just for dev
server: {
port: 3001,
},
plugins: [
pluginModuleFederation({
name: 'rslib_provider',
Expand All @@ -56,5 +52,9 @@ export default defineConfig({
],
},
],
// just for dev
server: {
port: 3001,
},
plugins: [pluginReact()],
});
8 changes: 4 additions & 4 deletions website/docs/en/guide/advanced/module-federation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,6 @@ export default defineConfig({
dev: {
assetPrefix: 'http://localhost:3001/mf',
},
// for Storybook to dev
server: {
port: 3001,
},
plugins: [
pluginModuleFederation({
name: 'rslib_provider',
Expand All @@ -75,6 +71,10 @@ export default defineConfig({
],
},
],
// for Storybook to dev
server: {
port: 3001,
},
output: {
target: 'web',
},
Expand Down
8 changes: 4 additions & 4 deletions website/docs/zh/guide/advanced/module-federation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,6 @@ export default defineConfig({
dev: {
assetPrefix: 'http://localhost:3001/mf',
},
// Storybook 在 dev 下使用
server: {
port: 3001,
},
plugins: [
pluginModuleFederation({
name: 'rslib_provider',
Expand All @@ -75,6 +71,10 @@ export default defineConfig({
],
},
],
// Storybook 在 dev 下使用
server: {
port: 3001,
},
output: {
target: 'web',
},
Expand Down

0 comments on commit 91f89f6

Please sign in to comment.