make bundler more resilient to missing sources

This commit is contained in:
Stewart Allen 2025-10-14 00:33:36 -04:00
commit 1c6a988d27
2 changed files with 9 additions and 1 deletions

View file

@ -14,6 +14,9 @@ function* walk(dir, seen = new Set()) {
if (excludes.indexOf(dir) >= 0) {
return;
}
if (!fs.existsSync(dir)) {
return;
}
const real = fs.realpathSync(dir);
if (seen.has(real)) {