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 364f2bc commit 425fc9dCopy full SHA for 425fc9d
.changeset/popular-fishes-speak.md
@@ -0,0 +1,5 @@
1
+---
2
+'@module-federation/runtime': patch
3
4
+
5
+fix: only delete can be configurable descriptor
packages/runtime/src/remote/index.ts
@@ -410,7 +410,10 @@ export class RemoteHandler {
410
const remoteInfo = loadedModule.remoteInfo;
411
const key = remoteInfo.entryGlobalName as keyof typeof globalThis;
412
413
- if (globalThis[key]) {
+ if (
414
+ globalThis[key] &&
415
+ Object.getOwnPropertyDescriptor(globalThis, key)?.configurable
416
+ ) {
417
delete globalThis[key];
418
}
419
const remoteEntryUniqueKey = getRemoteEntryUniqueKey(
0 commit comments