Skip to content

Commit be5f11a

Browse files
fix: check if remoteEntry files is empty (#2761)
Co-authored-by: Zack Jackson <[email protected]>
1 parent d26d7e6 commit be5f11a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/manifest/src/StatsManager.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ class StatsManager {
8989
const files = Array.from(remoteEntryNameChunk.files).filter(
9090
(f) => !f.includes(HOT_UPDATE_SUFFIX) && !f.endsWith('.css'),
9191
);
92+
assert(files.length > 0, 'no files found for remoteEntry chunk');
9293
assert(
9394
files.length === 1,
9495
`remoteEntry chunk should not have multiple files!, current files: ${files.join(

0 commit comments

Comments
 (0)