Skip to content

Commit 737c16c

Browse files
fix: logic
1 parent df669ca commit 737c16c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎lib/asset/AssetGenerator.js‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -649,6 +649,10 @@ class AssetGenerator extends Generator {
649649
const connections = this._moduleGraph.getIncomingConnections(module);
650650

651651
for (const connection of connections) {
652+
if (!connection.originModule) {
653+
continue;
654+
}
655+
652656
sourceTypes.add(connection.originModule.type.split("/")[0]);
653657
}
654658

0 commit comments

Comments
 (0)