@module-federation/manifest 2.6.0 → 2.7.0
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/ManifestManager.js +13 -11
- package/dist/ManifestManager.mjs +0 -5
- package/dist/ModuleHandler.d.ts +1 -1
- package/dist/ModuleHandler.js +22 -21
- package/dist/ModuleHandler.mjs +6 -12
- package/dist/StatsManager.js +14 -13
- package/dist/StatsManager.mjs +1 -9
- package/dist/StatsPlugin.js +13 -11
- package/dist/StatsPlugin.mjs +0 -6
- package/dist/constants.js +19 -15
- package/dist/constants.mjs +0 -2
- package/dist/index.js +38 -36
- package/dist/index.mjs +3 -9
- package/dist/logger.js +14 -12
- package/dist/logger.mjs +2 -6
- package/dist/types.js +2 -4
- package/dist/types.mjs +1 -2
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +21 -20
- package/dist/utils.mjs +2 -9
- package/package.json +5 -5
package/dist/ManifestManager.js
CHANGED
|
@@ -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__);
|
|
@@ -152,9 +154,9 @@ class ManifestManager {
|
|
|
152
154
|
|
|
153
155
|
|
|
154
156
|
exports.ManifestManager = __webpack_exports__.ManifestManager;
|
|
155
|
-
for(var
|
|
156
|
-
if(["ManifestManager"].indexOf(
|
|
157
|
-
exports[
|
|
157
|
+
for(var __rspack_i in __webpack_exports__) {
|
|
158
|
+
if(["ManifestManager"].indexOf(__rspack_i) === -1) {
|
|
159
|
+
exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
158
160
|
}
|
|
159
161
|
}
|
|
160
162
|
Object.defineProperty(exports, '__esModule', { value: true });
|
package/dist/ManifestManager.mjs
CHANGED
|
@@ -3,15 +3,10 @@ import { getManifestFileName } from "@module-federation/sdk";
|
|
|
3
3
|
import { isDev } from "./utils.mjs";
|
|
4
4
|
import logger from "./logger.mjs";
|
|
5
5
|
|
|
6
|
-
;// CONCATENATED MODULE: external "node:util"
|
|
7
6
|
|
|
8
|
-
;// CONCATENATED MODULE: external "@module-federation/sdk"
|
|
9
7
|
|
|
10
|
-
;// CONCATENATED MODULE: external "./utils.mjs"
|
|
11
8
|
|
|
12
|
-
;// CONCATENATED MODULE: external "./logger.mjs"
|
|
13
9
|
|
|
14
|
-
;// CONCATENATED MODULE: ./src/ManifestManager.ts
|
|
15
10
|
|
|
16
11
|
|
|
17
12
|
|
package/dist/ModuleHandler.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { StatsExpose, StatsRemote, StatsShared, moduleFederationPlugin } from '@module-federation/sdk';
|
|
2
|
-
import type { StatsModule } from '../../../webpack/lib/stats/DefaultStatsFactoryPlugin
|
|
2
|
+
import type { StatsModule } from '../../../webpack/lib/stats/DefaultStatsFactoryPlugin';
|
|
3
3
|
import type managerTypes from '@module-federation/managers';
|
|
4
4
|
export declare const getExposeName: (exposeKey: string) => string;
|
|
5
5
|
export declare function getExposeItem({ exposeKey, name, file, }: {
|
package/dist/ModuleHandler.js
CHANGED
|
@@ -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,17 +49,16 @@ __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
|
-
getExposeItem: () => (/* binding */ getExposeItem),
|
|
57
58
|
ModuleHandler: () => (/* binding */ ModuleHandler),
|
|
58
|
-
|
|
59
|
-
getExposeName: () => (/* binding */ getExposeName)
|
|
59
|
+
getExposeItem: () => (/* binding */ getExposeItem),
|
|
60
|
+
getExposeName: () => (/* binding */ getExposeName),
|
|
61
|
+
getShareItem: () => (/* binding */ getShareItem)
|
|
60
62
|
});
|
|
61
63
|
|
|
62
64
|
;// CONCATENATED MODULE: external "@module-federation/sdk"
|
|
@@ -96,7 +98,7 @@ const normalizeExposeValue = (exposeValue)=>{
|
|
|
96
98
|
if ('import' in exposeValue) {
|
|
97
99
|
const { import: rawImport, name } = exposeValue;
|
|
98
100
|
const normalizedImport = toImportArray(rawImport);
|
|
99
|
-
if (!
|
|
101
|
+
if (!normalizedImport?.length) {
|
|
100
102
|
return undefined;
|
|
101
103
|
}
|
|
102
104
|
return {
|
|
@@ -109,7 +111,7 @@ const normalizeExposeValue = (exposeValue)=>{
|
|
|
109
111
|
return undefined;
|
|
110
112
|
}
|
|
111
113
|
const normalizedImport = toImportArray(exposeValue);
|
|
112
|
-
if (!
|
|
114
|
+
if (!normalizedImport?.length) {
|
|
113
115
|
return undefined;
|
|
114
116
|
}
|
|
115
117
|
return {
|
|
@@ -185,7 +187,7 @@ const getShareItem = ({ pkgName, normalizedShareOptions, pkgVersion, hostName })
|
|
|
185
187
|
return {
|
|
186
188
|
...normalizedShareOptions,
|
|
187
189
|
id: `${hostName}:${pkgName}`,
|
|
188
|
-
requiredVersion:
|
|
190
|
+
requiredVersion: normalizedShareOptions?.requiredVersion || `^${pkgVersion}`,
|
|
189
191
|
name: pkgName,
|
|
190
192
|
version: pkgVersion,
|
|
191
193
|
assets: {
|
|
@@ -391,7 +393,7 @@ class ModuleHandler {
|
|
|
391
393
|
const exposes = this._containerManager.containerPluginExposesOptions;
|
|
392
394
|
const normalizedEntries = Object.entries(exposes).reduce((acc, [exposeKey, exposeOptions])=>{
|
|
393
395
|
const normalizedExpose = normalizeExposeValue(exposeOptions);
|
|
394
|
-
if (!
|
|
396
|
+
if (!normalizedExpose?.import.length) {
|
|
395
397
|
return acc;
|
|
396
398
|
}
|
|
397
399
|
acc.push([
|
|
@@ -409,7 +411,7 @@ class ModuleHandler {
|
|
|
409
411
|
}
|
|
410
412
|
const normalizedFromOptions = Object.entries(rawExposes).reduce((acc, [exposeKey, exposeOptions])=>{
|
|
411
413
|
const normalizedExpose = normalizeExposeValue(exposeOptions);
|
|
412
|
-
if (!
|
|
414
|
+
if (!normalizedExpose?.import.length) {
|
|
413
415
|
return acc;
|
|
414
416
|
}
|
|
415
417
|
acc.push([
|
|
@@ -426,8 +428,7 @@ class ModuleHandler {
|
|
|
426
428
|
}
|
|
427
429
|
const exposes = this._containerManager.containerPluginExposesOptions;
|
|
428
430
|
Object.entries(exposes).forEach(([exposeKey, exposeOptions])=>{
|
|
429
|
-
|
|
430
|
-
if (!((_exposeOptions_import = exposeOptions.import) === null || _exposeOptions_import === void 0 ? void 0 : _exposeOptions_import.length)) {
|
|
431
|
+
if (!exposeOptions.import?.length) {
|
|
431
432
|
return;
|
|
432
433
|
}
|
|
433
434
|
const [exposeImport] = exposeOptions.import;
|
|
@@ -504,9 +505,9 @@ exports.ModuleHandler = __webpack_exports__.ModuleHandler;
|
|
|
504
505
|
exports.getExposeItem = __webpack_exports__.getExposeItem;
|
|
505
506
|
exports.getExposeName = __webpack_exports__.getExposeName;
|
|
506
507
|
exports.getShareItem = __webpack_exports__.getShareItem;
|
|
507
|
-
for(var
|
|
508
|
-
if(["ModuleHandler","getExposeItem","getExposeName","getShareItem"].indexOf(
|
|
509
|
-
exports[
|
|
508
|
+
for(var __rspack_i in __webpack_exports__) {
|
|
509
|
+
if(["ModuleHandler","getExposeItem","getExposeName","getShareItem"].indexOf(__rspack_i) === -1) {
|
|
510
|
+
exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
510
511
|
}
|
|
511
512
|
}
|
|
512
513
|
Object.defineProperty(exports, '__esModule', { value: true });
|
package/dist/ModuleHandler.mjs
CHANGED
|
@@ -3,15 +3,10 @@ import path from "path";
|
|
|
3
3
|
import { ContainerManager, RemoteManager, SharedManager } from "@module-federation/managers";
|
|
4
4
|
import { getFileNameWithOutExt } from "./utils.mjs";
|
|
5
5
|
|
|
6
|
-
;// CONCATENATED MODULE: external "@module-federation/sdk"
|
|
7
6
|
|
|
8
|
-
;// CONCATENATED MODULE: external "path"
|
|
9
7
|
|
|
10
|
-
;// CONCATENATED MODULE: external "@module-federation/managers"
|
|
11
8
|
|
|
12
|
-
;// CONCATENATED MODULE: external "./utils.mjs"
|
|
13
9
|
|
|
14
|
-
;// CONCATENATED MODULE: ./src/ModuleHandler.ts
|
|
15
10
|
|
|
16
11
|
|
|
17
12
|
|
|
@@ -39,7 +34,7 @@ const normalizeExposeValue = (exposeValue)=>{
|
|
|
39
34
|
if ('import' in exposeValue) {
|
|
40
35
|
const { import: rawImport, name } = exposeValue;
|
|
41
36
|
const normalizedImport = toImportArray(rawImport);
|
|
42
|
-
if (!
|
|
37
|
+
if (!normalizedImport?.length) {
|
|
43
38
|
return undefined;
|
|
44
39
|
}
|
|
45
40
|
return {
|
|
@@ -52,7 +47,7 @@ const normalizeExposeValue = (exposeValue)=>{
|
|
|
52
47
|
return undefined;
|
|
53
48
|
}
|
|
54
49
|
const normalizedImport = toImportArray(exposeValue);
|
|
55
|
-
if (!
|
|
50
|
+
if (!normalizedImport?.length) {
|
|
56
51
|
return undefined;
|
|
57
52
|
}
|
|
58
53
|
return {
|
|
@@ -128,7 +123,7 @@ const getShareItem = ({ pkgName, normalizedShareOptions, pkgVersion, hostName })
|
|
|
128
123
|
return {
|
|
129
124
|
...normalizedShareOptions,
|
|
130
125
|
id: `${hostName}:${pkgName}`,
|
|
131
|
-
requiredVersion:
|
|
126
|
+
requiredVersion: normalizedShareOptions?.requiredVersion || `^${pkgVersion}`,
|
|
132
127
|
name: pkgName,
|
|
133
128
|
version: pkgVersion,
|
|
134
129
|
assets: {
|
|
@@ -334,7 +329,7 @@ class ModuleHandler {
|
|
|
334
329
|
const exposes = this._containerManager.containerPluginExposesOptions;
|
|
335
330
|
const normalizedEntries = Object.entries(exposes).reduce((acc, [exposeKey, exposeOptions])=>{
|
|
336
331
|
const normalizedExpose = normalizeExposeValue(exposeOptions);
|
|
337
|
-
if (!
|
|
332
|
+
if (!normalizedExpose?.import.length) {
|
|
338
333
|
return acc;
|
|
339
334
|
}
|
|
340
335
|
acc.push([
|
|
@@ -352,7 +347,7 @@ class ModuleHandler {
|
|
|
352
347
|
}
|
|
353
348
|
const normalizedFromOptions = Object.entries(rawExposes).reduce((acc, [exposeKey, exposeOptions])=>{
|
|
354
349
|
const normalizedExpose = normalizeExposeValue(exposeOptions);
|
|
355
|
-
if (!
|
|
350
|
+
if (!normalizedExpose?.import.length) {
|
|
356
351
|
return acc;
|
|
357
352
|
}
|
|
358
353
|
acc.push([
|
|
@@ -369,8 +364,7 @@ class ModuleHandler {
|
|
|
369
364
|
}
|
|
370
365
|
const exposes = this._containerManager.containerPluginExposesOptions;
|
|
371
366
|
Object.entries(exposes).forEach(([exposeKey, exposeOptions])=>{
|
|
372
|
-
|
|
373
|
-
if (!((_exposeOptions_import = exposeOptions.import) === null || _exposeOptions_import === void 0 ? void 0 : _exposeOptions_import.length)) {
|
|
367
|
+
if (!exposeOptions.import?.length) {
|
|
374
368
|
return;
|
|
375
369
|
}
|
|
376
370
|
const [exposeImport] = exposeOptions.import;
|
package/dist/StatsManager.js
CHANGED
|
@@ -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__);
|
|
@@ -109,7 +111,6 @@ class StatsManager {
|
|
|
109
111
|
return metaData;
|
|
110
112
|
}
|
|
111
113
|
_getMetaData(compiler, compilation, extraOptions) {
|
|
112
|
-
var _this__options_library, _this__options;
|
|
113
114
|
const { context } = compiler.options;
|
|
114
115
|
const { _options: { name } } = this;
|
|
115
116
|
const buildInfo = this.getBuildInfo(context, compilation.options.target || '');
|
|
@@ -140,7 +141,7 @@ class StatsManager {
|
|
|
140
141
|
name: getRemoteEntryName(),
|
|
141
142
|
path: '',
|
|
142
143
|
// same as the types supported by runtime, currently only global/var/script is supported
|
|
143
|
-
type:
|
|
144
|
+
type: this._options?.library?.type || 'global'
|
|
144
145
|
},
|
|
145
146
|
types: (0,external_utils_js_namespaceObject.getTypesMetaInfo)(this._options, compiler.context),
|
|
146
147
|
globalName: globalName,
|
|
@@ -527,9 +528,9 @@ class StatsManager {
|
|
|
527
528
|
|
|
528
529
|
|
|
529
530
|
exports.StatsManager = __webpack_exports__.StatsManager;
|
|
530
|
-
for(var
|
|
531
|
-
if(["StatsManager"].indexOf(
|
|
532
|
-
exports[
|
|
531
|
+
for(var __rspack_i in __webpack_exports__) {
|
|
532
|
+
if(["StatsManager"].indexOf(__rspack_i) === -1) {
|
|
533
|
+
exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
533
534
|
}
|
|
534
535
|
}
|
|
535
536
|
Object.defineProperty(exports, '__esModule', { value: true });
|
package/dist/StatsManager.mjs
CHANGED
|
@@ -5,19 +5,12 @@ import { ContainerManager, PKGJsonManager, RemoteManager, SharedManager, UNKNOWN
|
|
|
5
5
|
import { HOT_UPDATE_SUFFIX } from "./constants.mjs";
|
|
6
6
|
import { ModuleHandler, getExposeItem, getExposeName, getShareItem } from "./ModuleHandler.mjs";
|
|
7
7
|
|
|
8
|
-
;// CONCATENATED MODULE: external "@module-federation/sdk"
|
|
9
8
|
|
|
10
|
-
;// CONCATENATED MODULE: external "./utils.mjs"
|
|
11
9
|
|
|
12
|
-
;// CONCATENATED MODULE: external "./logger.mjs"
|
|
13
10
|
|
|
14
|
-
;// CONCATENATED MODULE: external "@module-federation/managers"
|
|
15
11
|
|
|
16
|
-
;// CONCATENATED MODULE: external "./constants.mjs"
|
|
17
12
|
|
|
18
|
-
;// CONCATENATED MODULE: external "./ModuleHandler.mjs"
|
|
19
13
|
|
|
20
|
-
;// CONCATENATED MODULE: ./src/StatsManager.ts
|
|
21
14
|
/* eslint-disable max-lines-per-function */ /* eslint-disable @typescript-eslint/member-ordering */ /* eslint-disable max-depth */
|
|
22
15
|
|
|
23
16
|
|
|
@@ -57,7 +50,6 @@ class StatsManager {
|
|
|
57
50
|
return metaData;
|
|
58
51
|
}
|
|
59
52
|
_getMetaData(compiler, compilation, extraOptions) {
|
|
60
|
-
var _this__options_library, _this__options;
|
|
61
53
|
const { context } = compiler.options;
|
|
62
54
|
const { _options: { name } } = this;
|
|
63
55
|
const buildInfo = this.getBuildInfo(context, compilation.options.target || '');
|
|
@@ -88,7 +80,7 @@ class StatsManager {
|
|
|
88
80
|
name: getRemoteEntryName(),
|
|
89
81
|
path: '',
|
|
90
82
|
// same as the types supported by runtime, currently only global/var/script is supported
|
|
91
|
-
type:
|
|
83
|
+
type: this._options?.library?.type || 'global'
|
|
92
84
|
},
|
|
93
85
|
types: getTypesMetaInfo(this._options, compiler.context),
|
|
94
86
|
globalName: globalName,
|
package/dist/StatsPlugin.js
CHANGED
|
@@ -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__);
|
|
@@ -163,9 +165,9 @@ class StatsPlugin {
|
|
|
163
165
|
}
|
|
164
166
|
|
|
165
167
|
exports.StatsPlugin = __webpack_exports__.StatsPlugin;
|
|
166
|
-
for(var
|
|
167
|
-
if(["StatsPlugin"].indexOf(
|
|
168
|
-
exports[
|
|
168
|
+
for(var __rspack_i in __webpack_exports__) {
|
|
169
|
+
if(["StatsPlugin"].indexOf(__rspack_i) === -1) {
|
|
170
|
+
exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
169
171
|
}
|
|
170
172
|
}
|
|
171
173
|
Object.defineProperty(exports, '__esModule', { value: true });
|
package/dist/StatsPlugin.mjs
CHANGED
|
@@ -4,17 +4,11 @@ import { StatsManager } from "./StatsManager.mjs";
|
|
|
4
4
|
import { PLUGIN_IDENTIFIER } from "./constants.mjs";
|
|
5
5
|
import logger from "./logger.mjs";
|
|
6
6
|
|
|
7
|
-
;// CONCATENATED MODULE: external "@module-federation/sdk"
|
|
8
7
|
|
|
9
|
-
;// CONCATENATED MODULE: external "./ManifestManager.mjs"
|
|
10
8
|
|
|
11
|
-
;// CONCATENATED MODULE: external "./StatsManager.mjs"
|
|
12
9
|
|
|
13
|
-
;// CONCATENATED MODULE: external "./constants.mjs"
|
|
14
10
|
|
|
15
|
-
;// CONCATENATED MODULE: external "./logger.mjs"
|
|
16
11
|
|
|
17
|
-
;// CONCATENATED MODULE: ./src/StatsPlugin.ts
|
|
18
12
|
|
|
19
13
|
|
|
20
14
|
|
package/dist/constants.js
CHANGED
|
@@ -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,21 +37,22 @@ __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
|
-
HOT_UPDATE_SUFFIX: () => (HOT_UPDATE_SUFFIX),
|
|
42
|
-
PLUGIN_IDENTIFIER: () => (PLUGIN_IDENTIFIER)
|
|
43
|
-
});
|
|
44
42
|
const PLUGIN_IDENTIFIER = 'Module Federation Manifest Plugin';
|
|
45
43
|
const HOT_UPDATE_SUFFIX = '.hot-update';
|
|
46
44
|
|
|
45
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
46
|
+
}, {
|
|
47
|
+
HOT_UPDATE_SUFFIX: HOT_UPDATE_SUFFIX,
|
|
48
|
+
PLUGIN_IDENTIFIER: PLUGIN_IDENTIFIER
|
|
49
|
+
});
|
|
50
|
+
|
|
47
51
|
exports.HOT_UPDATE_SUFFIX = __webpack_exports__.HOT_UPDATE_SUFFIX;
|
|
48
52
|
exports.PLUGIN_IDENTIFIER = __webpack_exports__.PLUGIN_IDENTIFIER;
|
|
49
|
-
for(var
|
|
50
|
-
if(["HOT_UPDATE_SUFFIX","PLUGIN_IDENTIFIER"].indexOf(
|
|
51
|
-
exports[
|
|
53
|
+
for(var __rspack_i in __webpack_exports__) {
|
|
54
|
+
if(["HOT_UPDATE_SUFFIX","PLUGIN_IDENTIFIER"].indexOf(__rspack_i) === -1) {
|
|
55
|
+
exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
52
56
|
}
|
|
53
57
|
}
|
|
54
58
|
Object.defineProperty(exports, '__esModule', { value: true });
|
package/dist/constants.mjs
CHANGED
package/dist/index.js
CHANGED
|
@@ -7,25 +7,24 @@ const __rslib_import_meta_url__ = /*#__PURE__*/ (function () {
|
|
|
7
7
|
})();
|
|
8
8
|
;
|
|
9
9
|
var __webpack_modules__ = ({
|
|
10
|
-
"./ManifestManager"
|
|
10
|
+
"./ManifestManager"(module) {
|
|
11
11
|
module.exports = require("./ManifestManager.js");
|
|
12
12
|
|
|
13
|
-
}
|
|
14
|
-
"./StatsManager"
|
|
13
|
+
},
|
|
14
|
+
"./StatsManager"(module) {
|
|
15
15
|
module.exports = require("./StatsManager.js");
|
|
16
16
|
|
|
17
|
-
}
|
|
18
|
-
"./StatsPlugin"
|
|
17
|
+
},
|
|
18
|
+
"./StatsPlugin"(module) {
|
|
19
19
|
module.exports = require("./StatsPlugin.js");
|
|
20
20
|
|
|
21
|
-
}
|
|
22
|
-
"./types"
|
|
21
|
+
},
|
|
22
|
+
"./types"(module) {
|
|
23
23
|
module.exports = require("./types.js");
|
|
24
24
|
|
|
25
|
-
}
|
|
25
|
+
},
|
|
26
26
|
|
|
27
27
|
});
|
|
28
|
-
/************************************************************************/
|
|
29
28
|
// The module cache
|
|
30
29
|
var __webpack_module_cache__ = {};
|
|
31
30
|
|
|
@@ -49,7 +48,6 @@ return module.exports;
|
|
|
49
48
|
|
|
50
49
|
}
|
|
51
50
|
|
|
52
|
-
/************************************************************************/
|
|
53
51
|
// webpack/runtime/compat_get_default_export
|
|
54
52
|
(() => {
|
|
55
53
|
// getDefaultExport function for compatibility with non-ESM modules
|
|
@@ -64,12 +62,16 @@ __webpack_require__.n = (module) => {
|
|
|
64
62
|
})();
|
|
65
63
|
// webpack/runtime/define_property_getters
|
|
66
64
|
(() => {
|
|
67
|
-
__webpack_require__.d = (exports,
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
65
|
+
__webpack_require__.d = (exports, getters, values) => {
|
|
66
|
+
var define = (defs, kind) => {
|
|
67
|
+
for(var key in defs) {
|
|
68
|
+
if(__webpack_require__.o(defs, key) && !__webpack_require__.o(exports, key)) {
|
|
69
|
+
Object.defineProperty(exports, key, { enumerable: true, [kind]: defs[key] });
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
define(getters, "get");
|
|
74
|
+
define(values, "value");
|
|
73
75
|
};
|
|
74
76
|
})();
|
|
75
77
|
// webpack/runtime/has_own_property
|
|
@@ -86,41 +88,41 @@ __webpack_require__.r = (exports) => {
|
|
|
86
88
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
87
89
|
};
|
|
88
90
|
})();
|
|
89
|
-
/************************************************************************/
|
|
90
91
|
var __webpack_exports__ = {};
|
|
91
92
|
// This entry needs to be wrapped in an IIFE because it needs to be isolated against other modules in the chunk.
|
|
92
93
|
(() => {
|
|
93
94
|
__webpack_require__.r(__webpack_exports__);
|
|
94
|
-
__webpack_require__
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
/*
|
|
100
|
-
/*
|
|
101
|
-
/*
|
|
102
|
-
|
|
103
|
-
/*
|
|
104
|
-
/*
|
|
105
|
-
/*
|
|
106
|
-
/* ESM import */var _types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_types__WEBPACK_IMPORTED_MODULE_3__);
|
|
95
|
+
/* import */ var _StatsPlugin__rspack_import_0 = __webpack_require__("./StatsPlugin");
|
|
96
|
+
/* import */ var _StatsPlugin__rspack_import_0_default = /*#__PURE__*/__webpack_require__.n(_StatsPlugin__rspack_import_0);
|
|
97
|
+
/* import */ var _ManifestManager__rspack_import_1 = __webpack_require__("./ManifestManager");
|
|
98
|
+
/* import */ var _ManifestManager__rspack_import_1_default = /*#__PURE__*/__webpack_require__.n(_ManifestManager__rspack_import_1);
|
|
99
|
+
/* import */ var _StatsManager__rspack_import_2 = __webpack_require__("./StatsManager");
|
|
100
|
+
/* import */ var _StatsManager__rspack_import_2_default = /*#__PURE__*/__webpack_require__.n(_StatsManager__rspack_import_2);
|
|
101
|
+
/* import */ var _types__rspack_import_3 = __webpack_require__("./types");
|
|
102
|
+
/* import */ var _types__rspack_import_3_default = /*#__PURE__*/__webpack_require__.n(_types__rspack_import_3);
|
|
103
|
+
|
|
104
|
+
/* reexport */ var __rspack_reexport = {};
|
|
105
|
+
/* reexport */ for( const __rspack_import_key in _types__rspack_import_3) if(["StatsPlugin","ManifestManager","default","StatsManager"].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] =() => _types__rspack_import_3[__rspack_import_key]
|
|
106
|
+
/* reexport */ __webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
107
107
|
|
|
108
|
-
/* ESM reexport (unknown) */ var __WEBPACK_REEXPORT_OBJECT__ = {};
|
|
109
|
-
/* ESM reexport (unknown) */ for( var __WEBPACK_IMPORT_KEY__ in _types__WEBPACK_IMPORTED_MODULE_3__) if(["StatsManager","default","ManifestManager","StatsPlugin"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] =function(key) { return _types__WEBPACK_IMPORTED_MODULE_3__[key]; }.bind(0, __WEBPACK_IMPORT_KEY__)
|
|
110
|
-
/* ESM reexport (unknown) */ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
|
|
111
108
|
|
|
112
109
|
|
|
113
110
|
|
|
114
111
|
|
|
112
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
113
|
+
ManifestManager: () => (/* reexport safe */ _ManifestManager__rspack_import_1.ManifestManager),
|
|
114
|
+
StatsManager: () => (/* reexport safe */ _StatsManager__rspack_import_2.StatsManager),
|
|
115
|
+
StatsPlugin: () => (/* reexport safe */ _StatsPlugin__rspack_import_0.StatsPlugin)
|
|
116
|
+
});
|
|
115
117
|
|
|
116
118
|
})();
|
|
117
119
|
|
|
118
120
|
exports.ManifestManager = __webpack_exports__.ManifestManager;
|
|
119
121
|
exports.StatsManager = __webpack_exports__.StatsManager;
|
|
120
122
|
exports.StatsPlugin = __webpack_exports__.StatsPlugin;
|
|
121
|
-
for(var
|
|
122
|
-
if(["ManifestManager","StatsManager","StatsPlugin"].indexOf(
|
|
123
|
-
exports[
|
|
123
|
+
for(var __rspack_i in __webpack_exports__) {
|
|
124
|
+
if(["ManifestManager","StatsManager","StatsPlugin"].indexOf(__rspack_i) === -1) {
|
|
125
|
+
exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
124
126
|
}
|
|
125
127
|
}
|
|
126
128
|
Object.defineProperty(exports, '__esModule', { value: true });
|
package/dist/index.mjs
CHANGED
|
@@ -1,18 +1,12 @@
|
|
|
1
|
-
import { StatsPlugin } from "./StatsPlugin.mjs";
|
|
2
|
-
import { ManifestManager } from "./ManifestManager.mjs";
|
|
3
|
-
import { StatsManager } from "./StatsManager.mjs";
|
|
4
1
|
export * from "./types.mjs";
|
|
5
2
|
|
|
6
|
-
;// CONCATENATED MODULE: external "./StatsPlugin.mjs"
|
|
7
3
|
|
|
8
|
-
;// CONCATENATED MODULE: external "./ManifestManager.mjs"
|
|
9
4
|
|
|
10
|
-
;// CONCATENATED MODULE: external "./StatsManager.mjs"
|
|
11
5
|
|
|
12
|
-
;// CONCATENATED MODULE: ./src/index.ts
|
|
13
6
|
|
|
14
7
|
|
|
15
8
|
|
|
16
9
|
|
|
17
|
-
|
|
18
|
-
export { ManifestManager
|
|
10
|
+
export { StatsPlugin } from "./StatsPlugin.mjs";
|
|
11
|
+
export { ManifestManager } from "./ManifestManager.mjs";
|
|
12
|
+
export { StatsManager } from "./StatsManager.mjs";
|
package/dist/logger.js
CHANGED
|
@@ -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__);
|
|
@@ -56,12 +58,12 @@ const external_constants_js_namespaceObject = require("./constants.js");
|
|
|
56
58
|
|
|
57
59
|
const createBundlerLogger = typeof sdk_namespaceObject.createInfrastructureLogger === 'function' ? sdk_namespaceObject.createInfrastructureLogger : sdk_namespaceObject.createLogger;
|
|
58
60
|
const logger = createBundlerLogger((0,external_node_util_namespaceObject.styleText)('cyan', `[ ${external_constants_js_namespaceObject.PLUGIN_IDENTIFIER} ]`));
|
|
59
|
-
/*
|
|
61
|
+
/* export default */ const src_logger = (logger);
|
|
60
62
|
|
|
61
63
|
exports["default"] = __webpack_exports__["default"];
|
|
62
|
-
for(var
|
|
63
|
-
if(["default"].indexOf(
|
|
64
|
-
exports[
|
|
64
|
+
for(var __rspack_i in __webpack_exports__) {
|
|
65
|
+
if(["default"].indexOf(__rspack_i) === -1) {
|
|
66
|
+
exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
65
67
|
}
|
|
66
68
|
}
|
|
67
69
|
Object.defineProperty(exports, '__esModule', { value: true });
|
package/dist/logger.mjs
CHANGED
|
@@ -2,18 +2,14 @@ import { styleText } from "node:util";
|
|
|
2
2
|
import { createInfrastructureLogger, createLogger } from "@module-federation/sdk";
|
|
3
3
|
import { PLUGIN_IDENTIFIER } from "./constants.mjs";
|
|
4
4
|
|
|
5
|
-
;// CONCATENATED MODULE: external "node:util"
|
|
6
5
|
|
|
7
|
-
;// CONCATENATED MODULE: external "@module-federation/sdk"
|
|
8
6
|
|
|
9
|
-
;// CONCATENATED MODULE: external "./constants.mjs"
|
|
10
7
|
|
|
11
|
-
;// CONCATENATED MODULE: ./src/logger.ts
|
|
12
8
|
|
|
13
9
|
|
|
14
10
|
|
|
15
11
|
const createBundlerLogger = typeof createInfrastructureLogger === 'function' ? createInfrastructureLogger : createLogger;
|
|
16
12
|
const logger = createBundlerLogger(styleText('cyan', `[ ${PLUGIN_IDENTIFIER} ]`));
|
|
17
|
-
/*
|
|
13
|
+
/* export default */ const src_logger = (logger);
|
|
18
14
|
|
|
19
|
-
export
|
|
15
|
+
export default src_logger;
|
package/dist/types.js
CHANGED
|
@@ -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/make_namespace_object
|
|
14
13
|
(() => {
|
|
15
14
|
// define __esModule on exports
|
|
@@ -20,12 +19,11 @@ __webpack_require__.r = (exports) => {
|
|
|
20
19
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
21
20
|
};
|
|
22
21
|
})();
|
|
23
|
-
/************************************************************************/
|
|
24
22
|
var __webpack_exports__ = {};
|
|
25
23
|
__webpack_require__.r(__webpack_exports__);
|
|
26
24
|
|
|
27
25
|
|
|
28
|
-
for(var
|
|
29
|
-
exports[
|
|
26
|
+
for(var __rspack_i in __webpack_exports__) {
|
|
27
|
+
exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
30
28
|
}
|
|
31
29
|
Object.defineProperty(exports, '__esModule', { value: true });
|
package/dist/types.mjs
CHANGED
package/dist/utils.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Chunk, Compilation } from 'webpack';
|
|
2
|
-
import type { StatsCompilation, StatsModule } from '../../../webpack/lib/stats/DefaultStatsFactoryPlugin
|
|
2
|
+
import type { StatsCompilation, StatsModule } from '../../../webpack/lib/stats/DefaultStatsFactoryPlugin';
|
|
3
3
|
import { StatsAssets, moduleFederationPlugin, MetaDataTypes } from '@module-federation/sdk';
|
|
4
4
|
export declare function getAssetsByChunkIDs(compilation: Compilation, chunkIDMap: Record<string, Set<string | number>>): Record<string, {
|
|
5
5
|
js: string[];
|
package/dist/utils.js
CHANGED
|
@@ -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,22 +49,21 @@ __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__, {
|
|
58
|
+
assert: () => (/* binding */ assert),
|
|
59
|
+
error: () => (/* binding */ error),
|
|
56
60
|
findChunk: () => (/* binding */ findChunk),
|
|
57
|
-
getSharedModules: () => (/* binding */ getSharedModules),
|
|
58
|
-
getTypesMetaInfo: () => (/* binding */ getTypesMetaInfo),
|
|
59
|
-
isDev: () => (/* binding */ isDev),
|
|
60
|
-
getFileNameWithOutExt: () => (/* binding */ getFileNameWithOutExt),
|
|
61
61
|
getAssetsByChunk: () => (/* binding */ getAssetsByChunk),
|
|
62
|
-
error: () => (/* binding */ error),
|
|
63
62
|
getAssetsByChunkIDs: () => (/* binding */ getAssetsByChunkIDs),
|
|
64
|
-
|
|
63
|
+
getFileNameWithOutExt: () => (/* binding */ getFileNameWithOutExt),
|
|
64
|
+
getSharedModules: () => (/* binding */ getSharedModules),
|
|
65
|
+
getTypesMetaInfo: () => (/* binding */ getTypesMetaInfo),
|
|
66
|
+
isDev: () => (/* binding */ isDev)
|
|
65
67
|
});
|
|
66
68
|
|
|
67
69
|
;// CONCATENATED MODULE: external "path"
|
|
@@ -141,10 +143,9 @@ function findChunk(id, chunks) {
|
|
|
141
143
|
}
|
|
142
144
|
}
|
|
143
145
|
function getSharedModules(stats, sharedModules) {
|
|
144
|
-
var _stats_modules;
|
|
145
146
|
// 获取入口文件就是实际内容的 module
|
|
146
147
|
const entryContentModuleNames = [];
|
|
147
|
-
let effectiveSharedModules =
|
|
148
|
+
let effectiveSharedModules = stats.modules?.reduce((sum, module)=>{
|
|
148
149
|
for (const sharedModule of sharedModules){
|
|
149
150
|
if (sharedModule.name === module.issuerName) {
|
|
150
151
|
entryContentModuleNames.push(sharedModule.name);
|
|
@@ -156,7 +157,7 @@ function getSharedModules(stats, sharedModules) {
|
|
|
156
157
|
}
|
|
157
158
|
}
|
|
158
159
|
return sum;
|
|
159
|
-
}, [])
|
|
160
|
+
}, []) || [];
|
|
160
161
|
// 获取入口文件仅作为 Re Export 的 module
|
|
161
162
|
const entryReExportModules = sharedModules.filter((sharedModule)=>!entryContentModuleNames.includes(sharedModule.name));
|
|
162
163
|
if (entryReExportModules.length) {
|
|
@@ -288,9 +289,9 @@ exports.getFileNameWithOutExt = __webpack_exports__.getFileNameWithOutExt;
|
|
|
288
289
|
exports.getSharedModules = __webpack_exports__.getSharedModules;
|
|
289
290
|
exports.getTypesMetaInfo = __webpack_exports__.getTypesMetaInfo;
|
|
290
291
|
exports.isDev = __webpack_exports__.isDev;
|
|
291
|
-
for(var
|
|
292
|
-
if(["assert","error","findChunk","getAssetsByChunk","getAssetsByChunkIDs","getFileNameWithOutExt","getSharedModules","getTypesMetaInfo","isDev"].indexOf(
|
|
293
|
-
exports[
|
|
292
|
+
for(var __rspack_i in __webpack_exports__) {
|
|
293
|
+
if(["assert","error","findChunk","getAssetsByChunk","getAssetsByChunkIDs","getFileNameWithOutExt","getSharedModules","getTypesMetaInfo","isDev"].indexOf(__rspack_i) === -1) {
|
|
294
|
+
exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
294
295
|
}
|
|
295
296
|
}
|
|
296
297
|
Object.defineProperty(exports, '__esModule', { value: true });
|
package/dist/utils.mjs
CHANGED
|
@@ -4,17 +4,11 @@ import { isTSProject, retrieveTypesAssetsInfo } from "@module-federation/dts-plu
|
|
|
4
4
|
import { HOT_UPDATE_SUFFIX, PLUGIN_IDENTIFIER } from "./constants.mjs";
|
|
5
5
|
import logger from "./logger.mjs";
|
|
6
6
|
|
|
7
|
-
;// CONCATENATED MODULE: external "path"
|
|
8
7
|
|
|
9
|
-
;// CONCATENATED MODULE: external "@module-federation/sdk"
|
|
10
8
|
|
|
11
|
-
;// CONCATENATED MODULE: external "@module-federation/dts-plugin/core"
|
|
12
9
|
|
|
13
|
-
;// CONCATENATED MODULE: external "./constants.mjs"
|
|
14
10
|
|
|
15
|
-
;// CONCATENATED MODULE: external "./logger.mjs"
|
|
16
11
|
|
|
17
|
-
;// CONCATENATED MODULE: ./src/utils.ts
|
|
18
12
|
|
|
19
13
|
|
|
20
14
|
|
|
@@ -79,10 +73,9 @@ function findChunk(id, chunks) {
|
|
|
79
73
|
}
|
|
80
74
|
}
|
|
81
75
|
function getSharedModules(stats, sharedModules) {
|
|
82
|
-
var _stats_modules;
|
|
83
76
|
// 获取入口文件就是实际内容的 module
|
|
84
77
|
const entryContentModuleNames = [];
|
|
85
|
-
let effectiveSharedModules =
|
|
78
|
+
let effectiveSharedModules = stats.modules?.reduce((sum, module)=>{
|
|
86
79
|
for (const sharedModule of sharedModules){
|
|
87
80
|
if (sharedModule.name === module.issuerName) {
|
|
88
81
|
entryContentModuleNames.push(sharedModule.name);
|
|
@@ -94,7 +87,7 @@ function getSharedModules(stats, sharedModules) {
|
|
|
94
87
|
}
|
|
95
88
|
}
|
|
96
89
|
return sum;
|
|
97
|
-
}, [])
|
|
90
|
+
}, []) || [];
|
|
98
91
|
// 获取入口文件仅作为 Re Export 的 module
|
|
99
92
|
const entryReExportModules = sharedModules.filter((sharedModule)=>!entryContentModuleNames.includes(sharedModule.name));
|
|
100
93
|
if (entryReExportModules.length) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@module-federation/manifest",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.7.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Provide manifest/stats for webpack/rspack MF project .",
|
|
6
6
|
"keywords": [
|
|
@@ -27,10 +27,9 @@
|
|
|
27
27
|
"module": "./dist/index.mjs",
|
|
28
28
|
"types": "./dist/index.d.ts",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"
|
|
31
|
-
"@module-federation/
|
|
32
|
-
"@module-federation/dts-plugin": "2.
|
|
33
|
-
"@module-federation/managers": "2.6.0"
|
|
30
|
+
"@module-federation/sdk": "2.7.0",
|
|
31
|
+
"@module-federation/managers": "2.7.0",
|
|
32
|
+
"@module-federation/dts-plugin": "2.7.0"
|
|
34
33
|
},
|
|
35
34
|
"exports": {
|
|
36
35
|
".": {
|
|
@@ -52,6 +51,7 @@
|
|
|
52
51
|
}
|
|
53
52
|
},
|
|
54
53
|
"devDependencies": {
|
|
54
|
+
"typescript": "6.0.3",
|
|
55
55
|
"webpack": "^5.0.0"
|
|
56
56
|
},
|
|
57
57
|
"scripts": {
|