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

This commit is contained in:
morluto
2026-10-29 09:20:53 +08:00
committed by GitHub
parent 3536ea2f49
commit 59a895a193
4 changed files with 77 additions and 5 deletions
@@ -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) {