File tree Expand file tree Collapse file tree 6 files changed +135
-92
lines changed
cases/module-federation-v2
examples/module-federation-v2 Expand file tree Collapse file tree 6 files changed +135
-92
lines changed Original file line number Diff line number Diff line change 11import { pluginModuleFederation } from '@module-federation/rsbuild-plugin' ;
2- import { defineConfig } from '@rsbuild/core' ;
2+ import { defaultAllowedOrigins , defineConfig } from '@rsbuild/core' ;
33import { pluginReact } from '@rsbuild/plugin-react' ;
44
55export default defineConfig ( {
@@ -15,7 +15,7 @@ export default defineConfig({
1515 ] ,
1616 server : {
1717 cors : {
18- origin : 'https://localhost' ,
18+ origin : defaultAllowedOrigins ,
1919 } ,
2020 } ,
2121 dev : {
Original file line number Diff line number Diff line change 11import { pluginModuleFederation } from '@module-federation/rsbuild-plugin' ;
2- import { defineConfig } from '@rsbuild/core' ;
2+ import { defaultAllowedOrigins , defineConfig } from '@rsbuild/core' ;
33import { pluginReact } from '@rsbuild/plugin-react' ;
44
55export default defineConfig ( {
@@ -15,7 +15,7 @@ export default defineConfig({
1515 ] ,
1616 server : {
1717 cors : {
18- origin : 'https://localhost' ,
18+ origin : defaultAllowedOrigins ,
1919 } ,
2020 port : Number ( process . env . REMOTE_PORT ) || 3002 ,
2121 } ,
Original file line number Diff line number Diff line change 2020 },
2121 "devDependencies" : {
2222 "@e2e/helper" : " workspace:*" ,
23- "@module-federation/enhanced" : " 0.13.1 " ,
24- "@module-federation/rsbuild-plugin" : " 0.13.1 " ,
23+ "@module-federation/enhanced" : " 0.14.0 " ,
24+ "@module-federation/rsbuild-plugin" : " 0.14.0 " ,
2525 "@playwright/test" : " 1.52.0" ,
2626 "@rsbuild/core" : " workspace:*" ,
2727 "@rsbuild/plugin-babel" : " workspace:*" ,
Original file line number Diff line number Diff line change 1010 "react-dom" : " ^19.1.0"
1111 },
1212 "devDependencies" : {
13- "@module-federation/enhanced" : " 0.13.1 " ,
14- "@module-federation/rsbuild-plugin" : " 0.13.1 " ,
13+ "@module-federation/enhanced" : " 0.14.0 " ,
14+ "@module-federation/rsbuild-plugin" : " 0.14.0 " ,
1515 "@rsbuild/core" : " workspace:*" ,
1616 "@rsbuild/plugin-react" : " workspace:*"
1717 }
Original file line number Diff line number Diff line change 1010 "react-dom" : " ^19.1.0"
1111 },
1212 "devDependencies" : {
13- "@module-federation/enhanced" : " 0.13.1 " ,
14- "@module-federation/rsbuild-plugin" : " 0.13.1 " ,
13+ "@module-federation/enhanced" : " 0.14.0 " ,
14+ "@module-federation/rsbuild-plugin" : " 0.14.0 " ,
1515 "@rsbuild/core" : " workspace:*" ,
1616 "@rsbuild/plugin-react" : " workspace:*"
1717 }
You can’t perform that action at this time.
0 commit comments