Skip to content

Commit bb140ef

Browse files
committed
fix: Fix symbol errors when finding modules on new Steam beta
1 parent f080606 commit bb140ef

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

typescript-packages/client/src/webpack.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,14 @@ export const findModuleDetailsByExport = (
7272
if (minExports && Object.keys(mod).length < minExports) continue;
7373
for (let exportName in mod) {
7474
if (mod?.[exportName]) {
75-
const filterRes = filter(mod[exportName], exportName);
76-
if (filterRes) {
77-
return [mod, mod[exportName], exportName, id];
78-
} else {
79-
continue;
80-
}
75+
try {
76+
const filterRes = filter(mod[exportName], exportName);
77+
if (filterRes) {
78+
return [mod, mod[exportName], exportName, id];
79+
} else {
80+
continue;
81+
}
82+
} catch {}
8183
}
8284
}
8385
}

0 commit comments

Comments
 (0)