File tree Expand file tree Collapse file tree 4 files changed +811
-761
lines changed Expand file tree Collapse file tree 4 files changed +811
-761
lines changed Original file line number Diff line number Diff line change 13
13
"react-dom" : " ^19.0.0"
14
14
},
15
15
"devDependencies" : {
16
- "@module-federation/rsbuild-plugin" : " ^0.9.1 " ,
16
+ "@module-federation/rsbuild-plugin" : " 0.0.0-next-20250228220829 " ,
17
17
"@rsbuild/core" : " ^1.2.8" ,
18
18
"@rsbuild/plugin-react" : " ^1.1.0"
19
19
}
Original file line number Diff line number Diff line change 5
5
"type" : " module" ,
6
6
"scripts" : {
7
7
"build" : " rsbuild build" ,
8
- "dev" : " rsbuild dev --open " ,
8
+ "dev" : " rsbuild dev" ,
9
9
"preview" : " rsbuild preview"
10
10
},
11
11
"dependencies" : {
12
12
"react" : " ^19.0.0" ,
13
13
"react-dom" : " ^19.0.0"
14
14
},
15
15
"devDependencies" : {
16
- "@module-federation/rsbuild-plugin" : " ^0.9.1 " ,
16
+ "@module-federation/rsbuild-plugin" : " 0.0.0-next-20250228220829 " ,
17
17
"@rsbuild/core" : " ^1.2.8" ,
18
18
"@rsbuild/plugin-react" : " ^1.1.0"
19
19
}
Original file line number Diff line number Diff line change @@ -29,26 +29,27 @@ export default defineConfig({
29
29
module : true ,
30
30
asyncChunks : true
31
31
} ,
32
- // optimization: {
33
- // runtimeChunk: 'single',
34
- // },
32
+ optimization : {
33
+ runtimeChunk : 'single' ,
34
+ } ,
35
35
} ,
36
36
} ,
37
37
plugins : [
38
38
pluginReact ( { splitChunks : { react : false , router : false } } ) ,
39
- // pluginModuleFederation({
40
- // name: 'remote',
41
- // filename: 'static/remoteEntry.js',
42
- // library: {
43
- // type: 'module',
44
- // },
45
- // exposes: {
46
- // './App': './src/App.jsx',
47
- // },
48
- // shared: {
49
- // react: { singleton: true },
50
- // 'react-dom': { singleton: true },
51
- // },
52
- // }),
39
+ pluginModuleFederation ( {
40
+ name : 'remote' ,
41
+ runtime : false ,
42
+ filename : 'static/remoteEntry.js' ,
43
+ library : {
44
+ type : 'module' ,
45
+ } ,
46
+ exposes : {
47
+ './App' : './src/App.jsx' ,
48
+ } ,
49
+ shared : {
50
+ react : { singleton : true } ,
51
+ 'react-dom' : { singleton : true } ,
52
+ } ,
53
+ } ) ,
53
54
] ,
54
55
} ) ;
You can’t perform that action at this time.
0 commit comments