File tree Expand file tree Collapse file tree 2 files changed +12
-20
lines changed Expand file tree Collapse file tree 2 files changed +12
-20
lines changed Original file line number Diff line number Diff line change @@ -641,25 +641,17 @@ const withModuleFederation =
641641
642642 // in production or on server build use tapAsync to wait for the full compilation of the sidecar
643643 if ( isProd || compiler . options . mode === "production" ) {
644- compiler . hooks . run . tap ( "NextFederation" , ( compilation ) => {
645- if (
646- compilation . name === "server" ||
647- compilation . name === "client"
648- ) {
649- const sidecarCompile = new Promise ( ( res ) => {
650- run ( compilation , ( err ) => res ( err ) ) ;
651- } ) ;
652-
653- compiler . hooks . afterCompile . tapAsync (
654- "NextFederation" ,
655- ( compilation , done ) => {
656- sidecarCompile . then ( ( res ) => {
657- done ( res ) ;
658- } ) ;
659- }
660- ) ;
661- }
662- } ) ;
644+ // if (
645+ // compiler.options.name === "server" ||
646+ // compiler.options.name === "client"
647+ // ) {
648+ compiler . hooks . afterCompile . tapAsync (
649+ "NextFederation" ,
650+ ( compilation , done ) => {
651+ run ( compilation , done ) ;
652+ }
653+ ) ;
654+ // }
663655 } else {
664656 compiler . hooks . afterCompile . tap (
665657 "NextFederation" ,
Original file line number Diff line number Diff line change 11{
22 "public" : true ,
33 "name" : " @module-federation/nextjs-ssr" ,
4- "version" : " 0.1.0-rc.7 " ,
4+ "version" : " 0.1.0-rc.8 " ,
55 "description" : " Module Federation CSR & SSR Support for Next.js" ,
66 "main" : " bundle.js" ,
77 "types" : " index.d.ts" ,
You can’t perform that action at this time.
0 commit comments