Files
flights_web_raw/ClientApp/node_modules/@module-federation/runtime/dist/utils.cjs.cjs
T
gnezim 0a5ab058a6 Initial commit: Aeroflot Flights Web - Angular 12 baseline
- Angular 12 application with PrimeNG components
- 5 existing Cypress e2e test suites
- SCSS styling with BEM naming convention
- i18n support (10 languages)
- Leaflet map integration
- Complete component hierarchy and routing structure

This baseline will be used for Angular → React migration.
2026-04-05 18:47:57 +03:00

35 lines
1.0 KiB
JavaScript

'use strict';
var runtimeCore = require('@module-federation/runtime-core');
// injected by bundler, so it can not use runtime-core stuff
function getBuilderId() {
//@ts-ignore
return typeof FEDERATION_BUILD_IDENTIFIER !== 'undefined'
? //@ts-ignore
FEDERATION_BUILD_IDENTIFIER
: '';
}
function getGlobalFederationInstance(name, version) {
const buildId = getBuilderId();
return runtimeCore.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;
});
}
exports.getGlobalFederationInstance = getGlobalFederationInstance;
//# sourceMappingURL=utils.cjs.cjs.map