We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad605d2 commit 87a2862Copy full SHA for 87a2862
.changeset/chilly-experts-walk.md
@@ -0,0 +1,5 @@
1
+---
2
+'@module-federation/node': patch
3
4
+
5
+add optional check while accessing webpack internals
packages/node/src/utils/hot-reload.ts
@@ -168,7 +168,7 @@ export const performReload = async (
168
}
169
});
170
//@ts-ignore
171
- __webpack_require__.federation.instance.moduleCache.clear();
+ __webpack_require__?.federation?.instance?.moduleCache?.clear();
172
helpers.global.resetFederationGlobalInfo();
173
globalThis.moduleGraphDirty = false;
174
globalThis.mfHashMap = {};
0 commit comments