File tree Expand file tree Collapse file tree 5 files changed +6
-14
lines changed Expand file tree Collapse file tree 5 files changed +6
-14
lines changed Original file line number Diff line number Diff line change 14
14
"@module-federation/dashboard-plugin" : " 2.1.0"
15
15
},
16
16
"scripts" : {
17
- "start" : " node --inspect ../../node_modules/ webpack-dev-server/bin/webpack-dev-server.js " ,
18
- "build" : " node ../../node_modules/ webpack/bin/webpack.js --mode production" ,
17
+ "start" : " webpack-cli serve " ,
18
+ "build" : " webpack --mode production" ,
19
19
"serve" : " serve dist -p 3001" ,
20
20
"clean" : " rm -rf dist"
21
21
},
Original file line number Diff line number Diff line change 1
- import App from "./App" ;
2
- import React from "react" ;
3
- import ReactDOM from "react-dom" ;
4
-
5
- ReactDOM . render ( < App /> , document . getElementById ( "root" ) ) ;
1
+ import ( './bootstrap' ) ;
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ module.exports = {
34
34
app2 : "app2@http://localhost:3002/remoteEntry.js" ,
35
35
} ,
36
36
exposes : {
37
- Button : "./src/Button" ,
37
+ "./ Button" : "./src/Button" ,
38
38
} ,
39
39
// sharing code based on the installed version, to allow for multiple vendors with different versions
40
40
shared : require ( "./package.json" ) . dependencies ,
Original file line number Diff line number Diff line change 1
- import App from "./App" ;
2
- import React from "react" ;
3
- import ReactDOM from "react-dom" ;
4
-
5
- ReactDOM . render ( < App /> , document . getElementById ( "root" ) ) ;
1
+ import ( './bootstrap' ) ;
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ module.exports = {
38
38
app1 : "app1@http://localhost:3001/remoteEntry.js" ,
39
39
} ,
40
40
exposes : {
41
- Button : "./src/Button" ,
41
+ "./ Button" : "./src/Button" ,
42
42
} ,
43
43
shared : sharedReduce ,
44
44
} ) ,
You can’t perform that action at this time.
0 commit comments