Skip to content

Commit 9559769

Browse files
authored
fix: remoteEntry chunk may have css files which need to be exclude (#2492)
1 parent f5d946d commit 9559769

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/quick-dodos-tie.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@module-federation/manifest': patch
3+
---
4+
5+
fix: remoteEntry chunk may have css files which need to be exclude

packages/manifest/src/StatsManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ class StatsManager {
8484

8585
assert(remoteEntryNameChunk, 'Can not get remoteEntry chunk!');
8686
const files = Array.from(remoteEntryNameChunk.files).filter(
87-
(f) => !f.includes(HOT_UPDATE_SUFFIX),
87+
(f) => !f.includes(HOT_UPDATE_SUFFIX) && !f.endsWith('.css'),
8888
);
8989
assert(
9090
files.length === 1,

0 commit comments

Comments
 (0)