File tree Expand file tree Collapse file tree 2 files changed +1
-29
lines changed
tests/rspack-test/serialCases/container-1-5/2-async-startup-sync-imports Expand file tree Collapse file tree 2 files changed +1
-29
lines changed Original file line number Diff line number Diff line change @@ -66,31 +66,5 @@ module.exports = [
6666 } )
6767 ] ,
6868 target : "node14"
69- } ,
70- // Node/CommonJS variant to ensure asyncStartup works without eager shares or dynamic import()
71- {
72- ...common ,
73- target : "node" ,
74- output : {
75- filename : "node/[name].cjs" ,
76- chunkFilename : "node/[name].cjs" ,
77- uniqueName : "2-async-startup-sync-imports-node" ,
78- chunkFormat : "commonjs"
79- } ,
80- plugins : [
81- new ModuleFederationPlugin ( {
82- name : "container" ,
83- library : { type : "commonjs-module" } ,
84- filename : "node/container.cjs" ,
85- remotes : {
86- containerA : "../0-container-full/container.js" ,
87- containerB : "./node/container.cjs"
88- } ,
89- ...commonMF ,
90- experiments : {
91- asyncStartup : true
92- }
93- } )
94- ]
9569 }
9670] ;
Original file line number Diff line number Diff line change 11/** @type {import('@rspack/test-tools').TConfigCaseConfig } */
22module . exports = {
33 findBundle : function ( i , options ) {
4- if ( i === 0 ) return "./main.js" ;
5- if ( i === 1 ) return "./module/main.mjs" ;
6- return "./node/main.cjs" ;
4+ return i === 0 ? "./main.js" : "./module/main.mjs" ;
75 }
86} ;
You can’t perform that action at this time.
0 commit comments