diff --git a/examples/module-federation/mf-react-component/rslib.config.ts b/examples/module-federation/mf-react-component/rslib.config.ts index 2f3b6e792..998c4de97 100644 --- a/examples/module-federation/mf-react-component/rslib.config.ts +++ b/examples/module-federation/mf-react-component/rslib.config.ts @@ -34,10 +34,6 @@ export default defineConfig({ dev: { assetPrefix: 'http://localhost:3001/mf', }, - // just for dev - server: { - port: 3001, - }, plugins: [ pluginModuleFederation({ name: 'rslib_provider', @@ -56,5 +52,9 @@ export default defineConfig({ ], }, ], + // just for dev + server: { + port: 3001, + }, plugins: [pluginReact()], }); diff --git a/website/docs/en/guide/advanced/module-federation.mdx b/website/docs/en/guide/advanced/module-federation.mdx index 5217f177b..9b33f51a1 100644 --- a/website/docs/en/guide/advanced/module-federation.mdx +++ b/website/docs/en/guide/advanced/module-federation.mdx @@ -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', @@ -75,6 +71,10 @@ export default defineConfig({ ], }, ], + // for Storybook to dev + server: { + port: 3001, + }, output: { target: 'web', }, diff --git a/website/docs/zh/guide/advanced/module-federation.mdx b/website/docs/zh/guide/advanced/module-federation.mdx index 979661411..3af43d191 100644 --- a/website/docs/zh/guide/advanced/module-federation.mdx +++ b/website/docs/zh/guide/advanced/module-federation.mdx @@ -51,10 +51,6 @@ export default defineConfig({ dev: { assetPrefix: 'http://localhost:3001/mf', }, - // Storybook 在 dev 下使用 - server: { - port: 3001, - }, plugins: [ pluginModuleFederation({ name: 'rslib_provider', @@ -75,6 +71,10 @@ export default defineConfig({ ], }, ], + // Storybook 在 dev 下使用 + server: { + port: 3001, + }, output: { target: 'web', },