Skip to content

Commit ebeffd6

Browse files
committed
Fix error infinite recursion when two mods depend on each other
1 parent 01abf2c commit ebeffd6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/local-mods.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,9 +259,11 @@ export class LocalMods {
259259
const depMod = this.cacheRecord[depModName] ?? this.cacheRecordByName[depModName]
260260

261261
if (depMod) {
262-
deps.add(depMod)
262+
if (!deps.has(depMod)) {
263+
deps.add(depMod)
263264

264-
this.findDeps(depMod, deps, missing)
265+
this.findDeps(depMod, deps, missing)
266+
}
265267
} else {
266268
missing.add(depModName)
267269
}

0 commit comments

Comments
 (0)