Skip to content

Commit ef6bf02

Browse files
removing perf stuff again
1 parent 86e59a4 commit ef6bf02

File tree

2 files changed

+12
-20
lines changed

2 files changed

+12
-20
lines changed

lib/with-federated-sidecar.js

Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff 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",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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",

0 commit comments

Comments
 (0)