make bundler more resilient to missing sources
This commit is contained in:
parent
4d9250e662
commit
1c6a988d27
2 changed files with 9 additions and 1 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue