@module-federation/esbuild 0.0.108 → 0.0.110
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adapters/lib/collect-exports.js +15 -13
- package/dist/adapters/lib/collect-exports.mjs +0 -7
- package/dist/adapters/lib/commonjs.js +22 -25
- package/dist/adapters/lib/commonjs.mjs +13 -41
- package/dist/adapters/lib/containerPlugin.js +14 -13
- package/dist/adapters/lib/containerPlugin.mjs +1 -4
- package/dist/adapters/lib/containerReference.js +14 -13
- package/dist/adapters/lib/containerReference.mjs +1 -4
- package/dist/adapters/lib/lexer.js +17 -14
- package/dist/adapters/lib/lexer.mjs +0 -2
- package/dist/adapters/lib/linkRemotesPlugin.js +13 -11
- package/dist/adapters/lib/linkRemotesPlugin.mjs +0 -2
- package/dist/adapters/lib/manifest.js +17 -16
- package/dist/adapters/lib/manifest.mjs +4 -9
- package/dist/adapters/lib/plugin.js +16 -16
- package/dist/adapters/lib/plugin.mjs +8 -44
- package/dist/adapters/lib/react-replacements.js +19 -14
- package/dist/adapters/lib/react-replacements.mjs +1 -2
- package/dist/adapters/lib/transform.js +13 -11
- package/dist/adapters/lib/transform.mjs +4 -8
- package/dist/adapters/lib/utils.js +20 -16
- package/dist/adapters/lib/utils.mjs +1 -3
- package/dist/build.js +47 -46
- package/dist/build.mjs +1 -2
- package/dist/index.js +17 -13
- package/dist/index.mjs +2 -4
- package/dist/lib/config/configuration-context.js +19 -16
- package/dist/lib/config/configuration-context.mjs +0 -2
- package/dist/lib/config/federation-config.js +2 -4
- package/dist/lib/config/federation-config.mjs +1 -2
- package/dist/lib/config/share-utils.js +24 -23
- package/dist/lib/config/share-utils.mjs +1 -10
- package/dist/lib/config/with-native-federation.js +13 -11
- package/dist/lib/config/with-native-federation.mjs +0 -5
- package/dist/lib/core/build-adapter.js +13 -11
- package/dist/lib/core/build-adapter.mjs +0 -2
- package/dist/lib/core/createContainerTemplate.js +18 -14
- package/dist/lib/core/createContainerTemplate.mjs +0 -2
- package/dist/lib/core/default-skip-list.js +21 -17
- package/dist/lib/core/default-skip-list.mjs +0 -2
- package/dist/lib/core/federation-options.js +2 -4
- package/dist/lib/core/federation-options.mjs +1 -2
- package/dist/lib/core/get-externals.js +17 -14
- package/dist/lib/core/get-externals.mjs +0 -2
- package/dist/lib/core/load-federation-config.js +13 -11
- package/dist/lib/core/load-federation-config.mjs +4 -8
- package/dist/lib/core/write-federation-info.js +13 -11
- package/dist/lib/core/write-federation-info.mjs +4 -8
- package/dist/lib/utils/logger.js +15 -13
- package/dist/lib/utils/logger.mjs +0 -2
- package/dist/lib/utils/mapped-paths.js +14 -13
- package/dist/lib/utils/mapped-paths.mjs +8 -14
- package/dist/lib/utils/normalize.js +17 -14
- package/dist/lib/utils/normalize.mjs +0 -2
- package/dist/lib/utils/package-info.js +21 -20
- package/dist/lib/utils/package-info.mjs +35 -41
- package/dist/plugin.js +19 -18
- package/dist/plugin.mjs +1 -2
- package/dist/rslib-runtime.mjs +31 -0
- package/package.json +7 -6
|
@@ -9,7 +9,6 @@ const __rslib_import_meta_url__ = /*#__PURE__*/ (function () {
|
|
|
9
9
|
// The require scope
|
|
10
10
|
var __webpack_require__ = {};
|
|
11
11
|
|
|
12
|
-
/************************************************************************/
|
|
13
12
|
// webpack/runtime/compat_get_default_export
|
|
14
13
|
(() => {
|
|
15
14
|
// getDefaultExport function for compatibility with non-ESM modules
|
|
@@ -24,12 +23,16 @@ __webpack_require__.n = (module) => {
|
|
|
24
23
|
})();
|
|
25
24
|
// webpack/runtime/define_property_getters
|
|
26
25
|
(() => {
|
|
27
|
-
__webpack_require__.d = (exports,
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
26
|
+
__webpack_require__.d = (exports, getters, values) => {
|
|
27
|
+
var define = (defs, kind) => {
|
|
28
|
+
for(var key in defs) {
|
|
29
|
+
if(__webpack_require__.o(defs, key) && !__webpack_require__.o(exports, key)) {
|
|
30
|
+
Object.defineProperty(exports, key, { enumerable: true, [kind]: defs[key] });
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
define(getters, "get");
|
|
35
|
+
define(values, "value");
|
|
33
36
|
};
|
|
34
37
|
})();
|
|
35
38
|
// webpack/runtime/has_own_property
|
|
@@ -46,16 +49,15 @@ __webpack_require__.r = (exports) => {
|
|
|
46
49
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
47
50
|
};
|
|
48
51
|
})();
|
|
49
|
-
/************************************************************************/
|
|
50
52
|
var __webpack_exports__ = {};
|
|
51
53
|
// ESM COMPAT FLAG
|
|
52
54
|
__webpack_require__.r(__webpack_exports__);
|
|
53
55
|
|
|
54
56
|
// EXPORTS
|
|
55
57
|
__webpack_require__.d(__webpack_exports__, {
|
|
56
|
-
|
|
58
|
+
getExports: () => (/* binding */ getExports),
|
|
57
59
|
resolve: () => (/* binding */ resolve),
|
|
58
|
-
|
|
60
|
+
resolvePackageJson: () => (/* binding */ resolvePackageJson)
|
|
59
61
|
});
|
|
60
62
|
|
|
61
63
|
;// CONCATENATED MODULE: external "es-module-lexer"
|
|
@@ -143,9 +145,9 @@ async function getExports(modulePath) {
|
|
|
143
145
|
exports.getExports = __webpack_exports__.getExports;
|
|
144
146
|
exports.resolve = __webpack_exports__.resolve;
|
|
145
147
|
exports.resolvePackageJson = __webpack_exports__.resolvePackageJson;
|
|
146
|
-
for(var
|
|
147
|
-
if(["getExports","resolve","resolvePackageJson"].indexOf(
|
|
148
|
-
exports[
|
|
148
|
+
for(var __rspack_i in __webpack_exports__) {
|
|
149
|
+
if(["getExports","resolve","resolvePackageJson"].indexOf(__rspack_i) === -1) {
|
|
150
|
+
exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
149
151
|
}
|
|
150
152
|
}
|
|
151
153
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -5,19 +5,12 @@ import enhanced_resolve from "enhanced-resolve";
|
|
|
5
5
|
import fs from "fs";
|
|
6
6
|
import path from "path";
|
|
7
7
|
|
|
8
|
-
;// CONCATENATED MODULE: external "es-module-lexer"
|
|
9
8
|
|
|
10
|
-
;// CONCATENATED MODULE: external "cjs-module-lexer"
|
|
11
9
|
|
|
12
|
-
;// CONCATENATED MODULE: external "util"
|
|
13
10
|
|
|
14
|
-
;// CONCATENATED MODULE: external "enhanced-resolve"
|
|
15
11
|
|
|
16
|
-
;// CONCATENATED MODULE: external "fs"
|
|
17
12
|
|
|
18
|
-
;// CONCATENATED MODULE: external "path"
|
|
19
13
|
|
|
20
|
-
;// CONCATENATED MODULE: ./src/adapters/lib/collect-exports.ts
|
|
21
14
|
|
|
22
15
|
|
|
23
16
|
|
|
@@ -7,17 +7,12 @@ const __rslib_import_meta_url__ = /*#__PURE__*/ (function () {
|
|
|
7
7
|
})();
|
|
8
8
|
;
|
|
9
9
|
var __webpack_modules__ = ({
|
|
10
|
-
"esbuild"
|
|
10
|
+
"esbuild"(module) {
|
|
11
11
|
module.exports = require("esbuild");
|
|
12
12
|
|
|
13
|
-
}
|
|
14
|
-
"cjs-module-lexer": (function (module) {
|
|
15
|
-
module.exports = import("cjs-module-lexer").then(function(module) { return module; });
|
|
16
|
-
|
|
17
|
-
}),
|
|
13
|
+
},
|
|
18
14
|
|
|
19
15
|
});
|
|
20
|
-
/************************************************************************/
|
|
21
16
|
// The module cache
|
|
22
17
|
var __webpack_module_cache__ = {};
|
|
23
18
|
|
|
@@ -41,15 +36,18 @@ return module.exports;
|
|
|
41
36
|
|
|
42
37
|
}
|
|
43
38
|
|
|
44
|
-
/************************************************************************/
|
|
45
39
|
// webpack/runtime/define_property_getters
|
|
46
40
|
(() => {
|
|
47
|
-
__webpack_require__.d = (exports,
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
41
|
+
__webpack_require__.d = (exports, getters, values) => {
|
|
42
|
+
var define = (defs, kind) => {
|
|
43
|
+
for(var key in defs) {
|
|
44
|
+
if(__webpack_require__.o(defs, key) && !__webpack_require__.o(exports, key)) {
|
|
45
|
+
Object.defineProperty(exports, key, { enumerable: true, [kind]: defs[key] });
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
define(getters, "get");
|
|
50
|
+
define(values, "value");
|
|
53
51
|
};
|
|
54
52
|
})();
|
|
55
53
|
// webpack/runtime/has_own_property
|
|
@@ -66,7 +64,6 @@ __webpack_require__.r = (exports) => {
|
|
|
66
64
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
67
65
|
};
|
|
68
66
|
})();
|
|
69
|
-
/************************************************************************/
|
|
70
67
|
var __webpack_exports__ = {};
|
|
71
68
|
// This entry needs to be wrapped in an IIFE because it needs to be isolated against other modules in the chunk.
|
|
72
69
|
(() => {
|
|
@@ -75,8 +72,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
75
72
|
|
|
76
73
|
// EXPORTS
|
|
77
74
|
__webpack_require__.d(__webpack_exports__, {
|
|
78
|
-
commonjs: () => (/* binding */
|
|
79
|
-
"default": () => (/* binding */
|
|
75
|
+
commonjs: () => (/* binding */ commonjs),
|
|
76
|
+
"default": () => (/* binding */ lib_commonjs)
|
|
80
77
|
});
|
|
81
78
|
|
|
82
79
|
;// CONCATENATED MODULE: external "fs"
|
|
@@ -89,8 +86,8 @@ const external_utils_js_namespaceObject = require("./utils.js");
|
|
|
89
86
|
|
|
90
87
|
|
|
91
88
|
|
|
92
|
-
function
|
|
93
|
-
const init_cjs_module_lexer = transform ?
|
|
89
|
+
function commonjs({ filter = /\.c?js$/, transform = true, transformConfig, requireReturnsDefault = true, ignore } = {}) {
|
|
90
|
+
const init_cjs_module_lexer = transform ? import("cjs-module-lexer") : undefined;
|
|
94
91
|
const use_default_export = typeof requireReturnsDefault === 'function' ? requireReturnsDefault : (_path)=>requireReturnsDefault;
|
|
95
92
|
const is_ignored = typeof ignore === 'function' ? ignore : Array.isArray(ignore) ? (path)=>ignore.includes(path) : ()=>false;
|
|
96
93
|
return {
|
|
@@ -138,9 +135,9 @@ function commonjs_commonjs({ filter = /\.c?js$/, transform = true, transformConf
|
|
|
138
135
|
// transform commonjs to es modules, easy mode
|
|
139
136
|
cjsExports = parseCJS(contents);
|
|
140
137
|
let { behavior, exports, sideEffects } = typeof willTransform === 'object' ? willTransform : {};
|
|
141
|
-
behavior ??=
|
|
138
|
+
behavior ??= transformConfig?.behavior ?? 'node';
|
|
142
139
|
exports = (0,external_utils_js_namespaceObject.orderedUniq)(cjsExports.exports.concat(exports ?? []));
|
|
143
|
-
sideEffects ??=
|
|
140
|
+
sideEffects ??= transformConfig?.sideEffects ?? true;
|
|
144
141
|
let exportDefault = behavior === 'node' ? 'export default exports;' : 'export default exports.__esModule ? exports.default : exports;';
|
|
145
142
|
let exportsMap = exports.map((e)=>[
|
|
146
143
|
e,
|
|
@@ -247,15 +244,15 @@ function commonjs_commonjs({ filter = /\.c?js$/, transform = true, transformConf
|
|
|
247
244
|
}
|
|
248
245
|
};
|
|
249
246
|
}
|
|
250
|
-
/*
|
|
247
|
+
/* export default */ const lib_commonjs = (commonjs);
|
|
251
248
|
|
|
252
249
|
})();
|
|
253
250
|
|
|
254
251
|
exports.commonjs = __webpack_exports__.commonjs;
|
|
255
252
|
exports["default"] = __webpack_exports__["default"];
|
|
256
|
-
for(var
|
|
257
|
-
if(["commonjs","default"].indexOf(
|
|
258
|
-
exports[
|
|
253
|
+
for(var __rspack_i in __webpack_exports__) {
|
|
254
|
+
if(["commonjs","default"].indexOf(__rspack_i) === -1) {
|
|
255
|
+
exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
259
256
|
}
|
|
260
257
|
}
|
|
261
258
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -1,53 +1,24 @@
|
|
|
1
|
-
import * as __WEBPACK_EXTERNAL_MODULE_esbuild__ from "esbuild";
|
|
2
1
|
import { promises } from "fs";
|
|
3
2
|
import { Lexer } from "./lexer.mjs";
|
|
4
3
|
import { cachedReduce, makeLegalIdentifier, orderedUniq } from "./utils.mjs";
|
|
5
|
-
|
|
6
|
-
"esbuild": (function (module) {
|
|
4
|
+
import { __webpack_require__ } from "../../rslib-runtime.mjs";
|
|
7
5
|
|
|
8
|
-
|
|
6
|
+
import * as __rspack_external_esbuild from "esbuild";
|
|
7
|
+
__webpack_require__.add({
|
|
8
|
+
"esbuild?dc06"(module) {
|
|
9
9
|
|
|
10
|
+
module.exports = __rspack_external_esbuild;
|
|
10
11
|
|
|
11
|
-
}),
|
|
12
12
|
|
|
13
|
+
},
|
|
13
14
|
});
|
|
14
|
-
/************************************************************************/
|
|
15
|
-
// The module cache
|
|
16
|
-
var __webpack_module_cache__ = {};
|
|
17
15
|
|
|
18
|
-
// The require function
|
|
19
|
-
function __webpack_require__(moduleId) {
|
|
20
16
|
|
|
21
|
-
// Check if module is in cache
|
|
22
|
-
var cachedModule = __webpack_module_cache__[moduleId];
|
|
23
|
-
if (cachedModule !== undefined) {
|
|
24
|
-
return cachedModule.exports;
|
|
25
|
-
}
|
|
26
|
-
// Create a new module (and put it into the cache)
|
|
27
|
-
var module = (__webpack_module_cache__[moduleId] = {
|
|
28
|
-
exports: {}
|
|
29
|
-
});
|
|
30
|
-
// Execute the module function
|
|
31
|
-
__webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
32
|
-
|
|
33
|
-
// Return the exports of the module
|
|
34
|
-
return module.exports;
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/************************************************************************/
|
|
39
|
-
|
|
40
|
-
;// CONCATENATED MODULE: external "fs"
|
|
41
|
-
|
|
42
|
-
;// CONCATENATED MODULE: external "./lexer.mjs"
|
|
43
|
-
|
|
44
|
-
;// CONCATENATED MODULE: external "./utils.mjs"
|
|
45
17
|
|
|
46
|
-
;// CONCATENATED MODULE: ./src/adapters/lib/commonjs.ts
|
|
47
18
|
|
|
48
19
|
|
|
49
20
|
|
|
50
|
-
function
|
|
21
|
+
function commonjs({ filter = /\.c?js$/, transform = true, transformConfig, requireReturnsDefault = true, ignore } = {}) {
|
|
51
22
|
const init_cjs_module_lexer = transform ? import("cjs-module-lexer") : undefined;
|
|
52
23
|
const use_default_export = typeof requireReturnsDefault === 'function' ? requireReturnsDefault : (_path)=>requireReturnsDefault;
|
|
53
24
|
const is_ignored = typeof ignore === 'function' ? ignore : Array.isArray(ignore) ? (path)=>ignore.includes(path) : ()=>false;
|
|
@@ -56,7 +27,7 @@ function commonjs_commonjs({ filter = /\.c?js$/, transform = true, transformConf
|
|
|
56
27
|
setup ({ onLoad, esbuild, initialOptions }) {
|
|
57
28
|
let esbuild_shim;
|
|
58
29
|
const require_esbuild = ()=>// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
59
|
-
esbuild || (esbuild_shim ||= __webpack_require__("esbuild"));
|
|
30
|
+
esbuild || (esbuild_shim ||= __webpack_require__("esbuild?dc06"));
|
|
60
31
|
const read = promises.readFile;
|
|
61
32
|
const lexer = new Lexer();
|
|
62
33
|
//@ts-ignore
|
|
@@ -96,9 +67,9 @@ function commonjs_commonjs({ filter = /\.c?js$/, transform = true, transformConf
|
|
|
96
67
|
// transform commonjs to es modules, easy mode
|
|
97
68
|
cjsExports = parseCJS(contents);
|
|
98
69
|
let { behavior, exports, sideEffects } = typeof willTransform === 'object' ? willTransform : {};
|
|
99
|
-
behavior ??=
|
|
70
|
+
behavior ??= transformConfig?.behavior ?? 'node';
|
|
100
71
|
exports = orderedUniq(cjsExports.exports.concat(exports ?? []));
|
|
101
|
-
sideEffects ??=
|
|
72
|
+
sideEffects ??= transformConfig?.sideEffects ?? true;
|
|
102
73
|
let exportDefault = behavior === 'node' ? 'export default exports;' : 'export default exports.__esModule ? exports.default : exports;';
|
|
103
74
|
let exportsMap = exports.map((e)=>[
|
|
104
75
|
e,
|
|
@@ -205,6 +176,7 @@ function commonjs_commonjs({ filter = /\.c?js$/, transform = true, transformConf
|
|
|
205
176
|
}
|
|
206
177
|
};
|
|
207
178
|
}
|
|
208
|
-
/*
|
|
179
|
+
/* export default */ const lib_commonjs = (commonjs);
|
|
209
180
|
|
|
210
|
-
export {
|
|
181
|
+
export { commonjs };
|
|
182
|
+
export default lib_commonjs;
|
|
@@ -9,15 +9,18 @@ const __rslib_import_meta_url__ = /*#__PURE__*/ (function () {
|
|
|
9
9
|
// The require scope
|
|
10
10
|
var __webpack_require__ = {};
|
|
11
11
|
|
|
12
|
-
/************************************************************************/
|
|
13
12
|
// webpack/runtime/define_property_getters
|
|
14
13
|
(() => {
|
|
15
|
-
__webpack_require__.d = (exports,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
14
|
+
__webpack_require__.d = (exports, getters, values) => {
|
|
15
|
+
var define = (defs, kind) => {
|
|
16
|
+
for(var key in defs) {
|
|
17
|
+
if(__webpack_require__.o(defs, key) && !__webpack_require__.o(exports, key)) {
|
|
18
|
+
Object.defineProperty(exports, key, { enumerable: true, [kind]: defs[key] });
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
define(getters, "get");
|
|
23
|
+
define(values, "value");
|
|
21
24
|
};
|
|
22
25
|
})();
|
|
23
26
|
// webpack/runtime/has_own_property
|
|
@@ -34,7 +37,6 @@ __webpack_require__.r = (exports) => {
|
|
|
34
37
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
35
38
|
};
|
|
36
39
|
})();
|
|
37
|
-
/************************************************************************/
|
|
38
40
|
var __webpack_exports__ = {};
|
|
39
41
|
// ESM COMPAT FLAG
|
|
40
42
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -57,8 +59,7 @@ const buildContainerHost = (config)=>{
|
|
|
57
59
|
alias: remoteAlias
|
|
58
60
|
}));
|
|
59
61
|
const sharedConfig = Object.entries(shared).reduce((acc, [pkg, config])=>{
|
|
60
|
-
|
|
61
|
-
const version = ((_config_requiredVersion = config.requiredVersion) === null || _config_requiredVersion === void 0 ? void 0 : _config_requiredVersion.replace(/^[^0-9]/, '')) || '';
|
|
62
|
+
const version = config.requiredVersion?.replace(/^[^0-9]/, '') || '';
|
|
62
63
|
acc += `${JSON.stringify(pkg)}: {
|
|
63
64
|
"package": "${pkg}",
|
|
64
65
|
"version": "${version}",
|
|
@@ -224,9 +225,9 @@ const createContainerPlugin = (config)=>({
|
|
|
224
225
|
});
|
|
225
226
|
|
|
226
227
|
exports.createContainerPlugin = __webpack_exports__.createContainerPlugin;
|
|
227
|
-
for(var
|
|
228
|
-
if(["createContainerPlugin"].indexOf(
|
|
229
|
-
exports[
|
|
228
|
+
for(var __rspack_i in __webpack_exports__) {
|
|
229
|
+
if(["createContainerPlugin"].indexOf(__rspack_i) === -1) {
|
|
230
|
+
exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
230
231
|
}
|
|
231
232
|
}
|
|
232
233
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { createContainerCode } from "../../lib/core/createContainerTemplate.mjs";
|
|
2
2
|
|
|
3
|
-
;// CONCATENATED MODULE: external "../../lib/core/createContainerTemplate.mjs"
|
|
4
3
|
|
|
5
|
-
;// CONCATENATED MODULE: ./src/adapters/lib/containerPlugin.ts
|
|
6
4
|
|
|
7
5
|
const buildContainerHost = (config)=>{
|
|
8
6
|
const { name, remotes = {}, shared = {}, exposes = {} } = config;
|
|
@@ -13,8 +11,7 @@ const buildContainerHost = (config)=>{
|
|
|
13
11
|
alias: remoteAlias
|
|
14
12
|
}));
|
|
15
13
|
const sharedConfig = Object.entries(shared).reduce((acc, [pkg, config])=>{
|
|
16
|
-
|
|
17
|
-
const version = ((_config_requiredVersion = config.requiredVersion) === null || _config_requiredVersion === void 0 ? void 0 : _config_requiredVersion.replace(/^[^0-9]/, '')) || '';
|
|
14
|
+
const version = config.requiredVersion?.replace(/^[^0-9]/, '') || '';
|
|
18
15
|
acc += `${JSON.stringify(pkg)}: {
|
|
19
16
|
"package": "${pkg}",
|
|
20
17
|
"version": "${version}",
|
|
@@ -9,7 +9,6 @@ const __rslib_import_meta_url__ = /*#__PURE__*/ (function () {
|
|
|
9
9
|
// The require scope
|
|
10
10
|
var __webpack_require__ = {};
|
|
11
11
|
|
|
12
|
-
/************************************************************************/
|
|
13
12
|
// webpack/runtime/compat_get_default_export
|
|
14
13
|
(() => {
|
|
15
14
|
// getDefaultExport function for compatibility with non-ESM modules
|
|
@@ -24,12 +23,16 @@ __webpack_require__.n = (module) => {
|
|
|
24
23
|
})();
|
|
25
24
|
// webpack/runtime/define_property_getters
|
|
26
25
|
(() => {
|
|
27
|
-
__webpack_require__.d = (exports,
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
26
|
+
__webpack_require__.d = (exports, getters, values) => {
|
|
27
|
+
var define = (defs, kind) => {
|
|
28
|
+
for(var key in defs) {
|
|
29
|
+
if(__webpack_require__.o(defs, key) && !__webpack_require__.o(exports, key)) {
|
|
30
|
+
Object.defineProperty(exports, key, { enumerable: true, [kind]: defs[key] });
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
define(getters, "get");
|
|
35
|
+
define(values, "value");
|
|
33
36
|
};
|
|
34
37
|
})();
|
|
35
38
|
// webpack/runtime/has_own_property
|
|
@@ -46,7 +49,6 @@ __webpack_require__.r = (exports) => {
|
|
|
46
49
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
47
50
|
};
|
|
48
51
|
})();
|
|
49
|
-
/************************************************************************/
|
|
50
52
|
var __webpack_exports__ = {};
|
|
51
53
|
// ESM COMPAT FLAG
|
|
52
54
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -72,8 +74,7 @@ const buildFederationHost = (config)=>{
|
|
|
72
74
|
type: 'esm'
|
|
73
75
|
}))) : '[]';
|
|
74
76
|
const sharedConfig = Object.entries(shared ?? {}).reduce((acc, [pkg, config])=>{
|
|
75
|
-
|
|
76
|
-
const version = ((_config_requiredVersion = config.requiredVersion) === null || _config_requiredVersion === void 0 ? void 0 : _config_requiredVersion.replace(/^[^0-9]/, '')) || '';
|
|
77
|
+
const version = config.requiredVersion?.replace(/^[^0-9]/, '') || '';
|
|
77
78
|
acc += `${JSON.stringify(pkg)}: {
|
|
78
79
|
"package": "${pkg}",
|
|
79
80
|
"version": "${version}",
|
|
@@ -248,9 +249,9 @@ const initializeHostPlugin = (config)=>({
|
|
|
248
249
|
|
|
249
250
|
exports.buildFederationHost = __webpack_exports__.buildFederationHost;
|
|
250
251
|
exports.initializeHostPlugin = __webpack_exports__.initializeHostPlugin;
|
|
251
|
-
for(var
|
|
252
|
-
if(["buildFederationHost","initializeHostPlugin"].indexOf(
|
|
253
|
-
exports[
|
|
252
|
+
for(var __rspack_i in __webpack_exports__) {
|
|
253
|
+
if(["buildFederationHost","initializeHostPlugin"].indexOf(__rspack_i) === -1) {
|
|
254
|
+
exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
254
255
|
}
|
|
255
256
|
}
|
|
256
257
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import fs from "fs";
|
|
2
2
|
|
|
3
|
-
;// CONCATENATED MODULE: external "fs"
|
|
4
3
|
|
|
5
|
-
;// CONCATENATED MODULE: ./src/adapters/lib/containerReference.ts
|
|
6
4
|
|
|
7
5
|
// Builds the federation host code
|
|
8
6
|
const buildFederationHost = (config)=>{
|
|
@@ -14,8 +12,7 @@ const buildFederationHost = (config)=>{
|
|
|
14
12
|
type: 'esm'
|
|
15
13
|
}))) : '[]';
|
|
16
14
|
const sharedConfig = Object.entries(shared ?? {}).reduce((acc, [pkg, config])=>{
|
|
17
|
-
|
|
18
|
-
const version = ((_config_requiredVersion = config.requiredVersion) === null || _config_requiredVersion === void 0 ? void 0 : _config_requiredVersion.replace(/^[^0-9]/, '')) || '';
|
|
15
|
+
const version = config.requiredVersion?.replace(/^[^0-9]/, '') || '';
|
|
19
16
|
acc += `${JSON.stringify(pkg)}: {
|
|
20
17
|
"package": "${pkg}",
|
|
21
18
|
"version": "${version}",
|
|
@@ -9,15 +9,18 @@ const __rslib_import_meta_url__ = /*#__PURE__*/ (function () {
|
|
|
9
9
|
// The require scope
|
|
10
10
|
var __webpack_require__ = {};
|
|
11
11
|
|
|
12
|
-
/************************************************************************/
|
|
13
12
|
// webpack/runtime/define_property_getters
|
|
14
13
|
(() => {
|
|
15
|
-
__webpack_require__.d = (exports,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
14
|
+
__webpack_require__.d = (exports, getters, values) => {
|
|
15
|
+
var define = (defs, kind) => {
|
|
16
|
+
for(var key in defs) {
|
|
17
|
+
if(__webpack_require__.o(defs, key) && !__webpack_require__.o(exports, key)) {
|
|
18
|
+
Object.defineProperty(exports, key, { enumerable: true, [kind]: defs[key] });
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
define(getters, "get");
|
|
23
|
+
define(values, "value");
|
|
21
24
|
};
|
|
22
25
|
})();
|
|
23
26
|
// webpack/runtime/has_own_property
|
|
@@ -34,12 +37,8 @@ __webpack_require__.r = (exports) => {
|
|
|
34
37
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
35
38
|
};
|
|
36
39
|
})();
|
|
37
|
-
/************************************************************************/
|
|
38
40
|
var __webpack_exports__ = {};
|
|
39
41
|
__webpack_require__.r(__webpack_exports__);
|
|
40
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
41
|
-
Lexer: () => (Lexer)
|
|
42
|
-
});
|
|
43
42
|
// simplified from acorn (MIT license)
|
|
44
43
|
function isNewLine(code) {
|
|
45
44
|
return code === 10 || code === 13 || code === 0x2028 || code === 0x2029;
|
|
@@ -175,10 +174,14 @@ class Lexer {
|
|
|
175
174
|
}
|
|
176
175
|
}
|
|
177
176
|
|
|
177
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
178
|
+
Lexer: () => (Lexer)
|
|
179
|
+
});
|
|
180
|
+
|
|
178
181
|
exports.Lexer = __webpack_exports__.Lexer;
|
|
179
|
-
for(var
|
|
180
|
-
if(["Lexer"].indexOf(
|
|
181
|
-
exports[
|
|
182
|
+
for(var __rspack_i in __webpack_exports__) {
|
|
183
|
+
if(["Lexer"].indexOf(__rspack_i) === -1) {
|
|
184
|
+
exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
182
185
|
}
|
|
183
186
|
}
|
|
184
187
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -9,7 +9,6 @@ const __rslib_import_meta_url__ = /*#__PURE__*/ (function () {
|
|
|
9
9
|
// The require scope
|
|
10
10
|
var __webpack_require__ = {};
|
|
11
11
|
|
|
12
|
-
/************************************************************************/
|
|
13
12
|
// webpack/runtime/compat_get_default_export
|
|
14
13
|
(() => {
|
|
15
14
|
// getDefaultExport function for compatibility with non-ESM modules
|
|
@@ -24,12 +23,16 @@ __webpack_require__.n = (module) => {
|
|
|
24
23
|
})();
|
|
25
24
|
// webpack/runtime/define_property_getters
|
|
26
25
|
(() => {
|
|
27
|
-
__webpack_require__.d = (exports,
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
26
|
+
__webpack_require__.d = (exports, getters, values) => {
|
|
27
|
+
var define = (defs, kind) => {
|
|
28
|
+
for(var key in defs) {
|
|
29
|
+
if(__webpack_require__.o(defs, key) && !__webpack_require__.o(exports, key)) {
|
|
30
|
+
Object.defineProperty(exports, key, { enumerable: true, [kind]: defs[key] });
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
define(getters, "get");
|
|
35
|
+
define(values, "value");
|
|
33
36
|
};
|
|
34
37
|
})();
|
|
35
38
|
// webpack/runtime/has_own_property
|
|
@@ -46,7 +49,6 @@ __webpack_require__.r = (exports) => {
|
|
|
46
49
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
47
50
|
};
|
|
48
51
|
})();
|
|
49
|
-
/************************************************************************/
|
|
50
52
|
var __webpack_exports__ = {};
|
|
51
53
|
// ESM COMPAT FLAG
|
|
52
54
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -107,9 +109,9 @@ const linkRemotesPlugin = (config)=>({
|
|
|
107
109
|
|
|
108
110
|
exports.createVirtualRemoteModule = __webpack_exports__.createVirtualRemoteModule;
|
|
109
111
|
exports.linkRemotesPlugin = __webpack_exports__.linkRemotesPlugin;
|
|
110
|
-
for(var
|
|
111
|
-
if(["createVirtualRemoteModule","linkRemotesPlugin"].indexOf(
|
|
112
|
-
exports[
|
|
112
|
+
for(var __rspack_i in __webpack_exports__) {
|
|
113
|
+
if(["createVirtualRemoteModule","linkRemotesPlugin"].indexOf(__rspack_i) === -1) {
|
|
114
|
+
exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
113
115
|
}
|
|
114
116
|
}
|
|
115
117
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import path from "path";
|
|
2
2
|
|
|
3
|
-
;// CONCATENATED MODULE: external "path"
|
|
4
3
|
|
|
5
|
-
;// CONCATENATED MODULE: ./src/adapters/lib/linkRemotesPlugin.ts
|
|
6
4
|
|
|
7
5
|
// relys on import map since i dont know the named exports of a remote to return.
|
|
8
6
|
const createVirtualRemoteModule = (name, ref)=>`
|