File tree Expand file tree Collapse file tree
test/configCases/container Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11module . exports = {
22 findBundle : function ( i , options ) {
3- return i === 0 ? "./main.js" : "./module/main.mjs" ;
3+ // In node 10 the ESM part of the test doesn't work
4+ return i === 0 || process . version . startsWith ( "v10." )
5+ ? "./main.js"
6+ : "./module/main.mjs" ;
47 }
58} ;
Original file line number Diff line number Diff line change 11const { ModuleFederationPlugin } = require ( "../../../../" ) . container ;
22
3+ /** @type {ConstructorParameters<typeof ModuleFederationPlugin>[0] } */
34const common = {
45 name : "container" ,
56 exposes : {
Original file line number Diff line number Diff line change 11module . exports = {
22 findBundle : function ( i , options ) {
3- return i === 0 ? "./main.js" : "./module/main.mjs" ;
3+ // In node 10 the ESM part of the test doesn't work
4+ return i === 0 || process . version . startsWith ( "v10." )
5+ ? "./main.js"
6+ : "./module/main.mjs" ;
47 }
58} ;
Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ const common = {
99 runtimeChunk : "single"
1010 }
1111} ;
12+
13+ /** @type {ConstructorParameters<typeof ModuleFederationPlugin>[0] } */
1214const commonMF = {
1315 runtime : false ,
1416 exposes : {
You can’t perform that action at this time.
0 commit comments