Project Init

This commit is contained in:
Muluhabt
2026-05-29 15:23:46 +03:00
commit 2fbc557aac
67387 changed files with 6063341 additions and 0 deletions

20
node_modules/@module-federation/runtime/dist/utils.cjs generated vendored Normal file
View File

@@ -0,0 +1,20 @@
const require_runtime = require('./_virtual/_rolldown/runtime.cjs');
let _module_federation_runtime_core = require("@module-federation/runtime-core");
//#region src/utils.ts
function getBuilderId() {
return typeof FEDERATION_BUILD_IDENTIFIER !== "undefined" ? FEDERATION_BUILD_IDENTIFIER : "";
}
function getGlobalFederationInstance(name, version) {
const buildId = getBuilderId();
return _module_federation_runtime_core.CurrentGlobal.__FEDERATION__.__INSTANCES__.find((GMInstance) => {
if (buildId && GMInstance.options.id === buildId) return true;
if (GMInstance.options.name === name && !GMInstance.options.version && !version) return true;
if (GMInstance.options.name === name && version && GMInstance.options.version === version) return true;
return false;
});
}
//#endregion
exports.getGlobalFederationInstance = getGlobalFederationInstance;
//# sourceMappingURL=utils.cjs.map