fix(electron): retain unknown external module ownership (#7950)

This commit is contained in:
morluto authored and GitHub committed 2026-10-29 09:20:53 +08:00
1 parent 3536ea2f49
commit 59a895a193
4 files changed
+77 -5

No files matched your search

@@ -741,7 +741,8 @@ const resolveReference = (
targetPath !== undefined && isJsonModuleTarget(targetPath, targetKind);
const targetImportsUnexamined =
!targetIsJson &&
(resolution.resolution_status === "unavailable" ||
(resolution.unexamined_module_imports === true ||
resolution.resolution_status === "unavailable" ||
(path !== null &&
!context.applicationModuleReferencesRetained.has(path)));
if (path === null) {