@module-federation/manifest 0.0.0-next-20240227135200 → 0.0.0-next-20240228073832
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/index.cjs.js +5 -2
- package/dist/index.esm.js +5 -2
- package/dist/src/constants.d.ts +1 -0
- package/package.json +3 -3
package/dist/index.cjs.js
CHANGED
|
@@ -13,6 +13,7 @@ var chalk__default = /*#__PURE__*/_interopDefaultLegacy(chalk);
|
|
|
13
13
|
var path__default = /*#__PURE__*/_interopDefaultLegacy(path);
|
|
14
14
|
|
|
15
15
|
var PLUGIN_IDENTIFIER = "Module Federation Manifest Plugin";
|
|
16
|
+
var HOT_UPDATE_SUFFIX = ".hot-update";
|
|
16
17
|
|
|
17
18
|
function _array_like_to_array$2(arr, len) {
|
|
18
19
|
if (len == null || len > arr.length) len = arr.length;
|
|
@@ -97,7 +98,7 @@ function getAssetsByChunkIDs(compilation, chunkIDMap) {
|
|
|
97
98
|
assetMap[key].css.add(asset);
|
|
98
99
|
} else {
|
|
99
100
|
if (process.env["NODE_ENV"] === "development") {
|
|
100
|
-
if (!asset.includes(
|
|
101
|
+
if (!asset.includes(HOT_UPDATE_SUFFIX)) {
|
|
101
102
|
assetMap[key].js.add(asset);
|
|
102
103
|
}
|
|
103
104
|
} else {
|
|
@@ -1179,7 +1180,9 @@ var StatsManager = /*#__PURE__*/ function() {
|
|
|
1179
1180
|
assert(remoteEntryPoint, "Can not get remoteEntry entryPoint!");
|
|
1180
1181
|
var remoteEntryNameChunk = compilation.namedChunks.get(name);
|
|
1181
1182
|
assert(remoteEntryNameChunk, "Can not get remoteEntry chunk!");
|
|
1182
|
-
assert(Array.from(remoteEntryNameChunk.files).
|
|
1183
|
+
assert(Array.from(remoteEntryNameChunk.files).filter(function(f) {
|
|
1184
|
+
return !f.includes(HOT_UPDATE_SUFFIX);
|
|
1185
|
+
}).length === 1, "remoteEntry chunk should not have multiple files!, current files: ".concat(Array.from(remoteEntryNameChunk.files).join(",")));
|
|
1183
1186
|
var remoteEntryName = _to_consumable_array(remoteEntryNameChunk.files)[0];
|
|
1184
1187
|
return remoteEntryName;
|
|
1185
1188
|
};
|
package/dist/index.esm.js
CHANGED
|
@@ -4,6 +4,7 @@ import path from 'path';
|
|
|
4
4
|
import { RemoteManager, SharedManager, ContainerManager, PKGJsonManager, utils } from '@module-federation/managers';
|
|
5
5
|
|
|
6
6
|
var PLUGIN_IDENTIFIER = "Module Federation Manifest Plugin";
|
|
7
|
+
var HOT_UPDATE_SUFFIX = ".hot-update";
|
|
7
8
|
|
|
8
9
|
function _array_like_to_array$2(arr, len) {
|
|
9
10
|
if (len == null || len > arr.length) len = arr.length;
|
|
@@ -88,7 +89,7 @@ function getAssetsByChunkIDs(compilation, chunkIDMap) {
|
|
|
88
89
|
assetMap[key].css.add(asset);
|
|
89
90
|
} else {
|
|
90
91
|
if (process.env["NODE_ENV"] === "development") {
|
|
91
|
-
if (!asset.includes(
|
|
92
|
+
if (!asset.includes(HOT_UPDATE_SUFFIX)) {
|
|
92
93
|
assetMap[key].js.add(asset);
|
|
93
94
|
}
|
|
94
95
|
} else {
|
|
@@ -1170,7 +1171,9 @@ var StatsManager = /*#__PURE__*/ function() {
|
|
|
1170
1171
|
assert(remoteEntryPoint, "Can not get remoteEntry entryPoint!");
|
|
1171
1172
|
var remoteEntryNameChunk = compilation.namedChunks.get(name);
|
|
1172
1173
|
assert(remoteEntryNameChunk, "Can not get remoteEntry chunk!");
|
|
1173
|
-
assert(Array.from(remoteEntryNameChunk.files).
|
|
1174
|
+
assert(Array.from(remoteEntryNameChunk.files).filter(function(f) {
|
|
1175
|
+
return !f.includes(HOT_UPDATE_SUFFIX);
|
|
1176
|
+
}).length === 1, "remoteEntry chunk should not have multiple files!, current files: ".concat(Array.from(remoteEntryNameChunk.files).join(",")));
|
|
1174
1177
|
var remoteEntryName = _to_consumable_array(remoteEntryNameChunk.files)[0];
|
|
1175
1178
|
return remoteEntryName;
|
|
1176
1179
|
};
|
package/dist/src/constants.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@module-federation/manifest",
|
|
3
|
-
"version": "0.0.0-next-
|
|
3
|
+
"version": "0.0.0-next-20240228073832",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Provide manifest/stats for webpack/rspack MF project .",
|
|
6
6
|
"keywords": [
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"find-pkg": "2.0.0",
|
|
26
26
|
"chalk": "3.0.0",
|
|
27
|
-
"@module-federation/sdk": "0.0.0-next-
|
|
28
|
-
"@module-federation/managers": "0.0.0-next-
|
|
27
|
+
"@module-federation/sdk": "0.0.0-next-20240228073832",
|
|
28
|
+
"@module-federation/managers": "0.0.0-next-20240228073832"
|
|
29
29
|
},
|
|
30
30
|
"exports": {
|
|
31
31
|
".": {
|