Skip to content

Commit 9b1ef87

Browse files
fix(inject-external-runtime-core-plugin): fix runtimeCore import conflict
1 parent 6923a54 commit 9b1ef87

File tree

1 file changed

+0
-11
lines changed
  • packages/runtime-plugins/inject-external-runtime-core-plugin/src

1 file changed

+0
-11
lines changed

packages/runtime-plugins/inject-external-runtime-core-plugin/src/index.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
import * as runtimeCore from '@module-federation/runtime-tools/dist/runtime-core.js';
22

33
import type { ModuleFederationRuntimePlugin } from '@module-federation/runtime-tools/runtime-core';
4-
const runtimeCore =
5-
(runtimeCoreDefault as typeof runtimeCoreNamespace | undefined) ??
6-
runtimeCoreNamespace;
74
declare global {
85
var __VERSION__: string;
96
var _FEDERATION_RUNTIME_CORE: typeof runtimeCore;
@@ -18,14 +15,6 @@ function injectExternalRuntimeCorePlugin(): ModuleFederationRuntimePlugin {
1815
name: 'inject-external-runtime-core-plugin',
1916
version: __VERSION__,
2017
beforeInit(args) {
21-
const globalRef = (
22-
runtimeCore as typeof runtimeCore & {
23-
Global?: typeof runtimeCore.Global;
24-
}
25-
).Global;
26-
if (!globalRef || typeof globalRef !== 'object') {
27-
return args;
28-
}
2918
const name = args.options.name;
3019
const version = __VERSION__;
3120

0 commit comments

Comments
 (0)