"use strict"; const __rslib_import_meta_url__ = /*#__PURE__*/ (function () { return typeof document === 'undefined' ? new (require('url'.replace('', '')).URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src) || new URL('main.js', document.baseURI).href; })(); ; // The require scope var __webpack_require__ = {}; /************************************************************************/ // webpack/runtime/compat_get_default_export (() => { // getDefaultExport function for compatibility with non-ESM modules __webpack_require__.n = (module) => { var getter = module && module.__esModule ? () => (module['default']) : () => (module); __webpack_require__.d(getter, { a: getter }); return getter; }; })(); // webpack/runtime/define_property_getters (() => { __webpack_require__.d = (exports, definition) => { for(var key in definition) { if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); } } }; })(); // webpack/runtime/has_own_property (() => { __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) })(); // webpack/runtime/make_namespace_object (() => { // define __esModule on exports __webpack_require__.r = (exports) => { if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); } Object.defineProperty(exports, '__esModule', { value: true }); }; })(); /************************************************************************/ var __webpack_exports__ = {}; // ESM COMPAT FLAG __webpack_require__.r(__webpack_exports__); // EXPORTS __webpack_require__.d(__webpack_exports__, { getConfigPath: () => (/* binding */ getConfigPath), readConfig: () => (/* binding */ readConfig) }); ;// CONCATENATED MODULE: external "path" const external_path_namespaceObject = require("path"); var external_path_default = /*#__PURE__*/__webpack_require__.n(external_path_namespaceObject); ;// CONCATENATED MODULE: external "jiti" const external_jiti_namespaceObject = require("jiti"); ;// CONCATENATED MODULE: ./src/utils/readConfig.ts const DEFAULT_CONFIG_PATH = 'module-federation.config.ts'; const getConfigPath = (userConfigPath)=>{ const defaultPath = external_path_default().resolve(process.cwd(), DEFAULT_CONFIG_PATH); const filepath = userConfigPath ?? defaultPath; return external_path_default().isAbsolute(filepath) ? filepath : external_path_default().resolve(process.cwd(), filepath); }; async function readConfig(userConfigPath) { const configPath = getConfigPath(userConfigPath); const jit = (0,external_jiti_namespaceObject.createJiti)(__filename, { interopDefault: true }); const configModule = await jit(configPath); const resolvedConfig = configModule && typeof configModule === 'object' && 'default' in configModule ? configModule.default : configModule; return resolvedConfig; } exports.getConfigPath = __webpack_exports__.getConfigPath; exports.readConfig = __webpack_exports__.readConfig; for(var __webpack_i__ in __webpack_exports__) { if(["getConfigPath","readConfig"].indexOf(__webpack_i__) === -1) { exports[__webpack_i__] = __webpack_exports__[__webpack_i__]; } } Object.defineProperty(exports, '__esModule', { value: true });