An external is only considered resolvable if it resolves to the same path as the collected external

This commit is contained in:
Eric Allam
2024-08-22 18:00:50 +01:00
parent 9ac57fdd88
commit aaa68ada62
+13
View File
@@ -59,6 +59,19 @@ async function isExternalResolvable(
resolvedPath,
});
if (!resolvedPath.includes(external.path)) {
logger.debug(
"[externals][isExternalResolvable] resolvedPath does not match the external.path",
{
resolveDir,
external,
resolvedPath,
}
);
return false;
}
return true;
} catch (e) {
logger.debug("[externals][isExternalResolvable] Unable to resolve external", {