File tree Expand file tree Collapse file tree 1 file changed +0
-11
lines changed
packages/runtime-plugins/inject-external-runtime-core-plugin/src Expand file tree Collapse file tree 1 file changed +0
-11
lines changed Original file line number Diff line number Diff line change 11import * as runtimeCore from '@module-federation/runtime-tools/dist/runtime-core.js' ;
22
33import type { ModuleFederationRuntimePlugin } from '@module-federation/runtime-tools/runtime-core' ;
4- const runtimeCore =
5- ( runtimeCoreDefault as typeof runtimeCoreNamespace | undefined ) ??
6- runtimeCoreNamespace ;
74declare 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
You can’t perform that action at this time.
0 commit comments