Skip to content

Commit 50b35a8

Browse files
committed
fixup! perf(@angular/build): resolve asset patterns concurrently with bounded concurrency
1 parent d015d2b commit 50b35a8

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

‎packages/angular/build/src/utils/concurrency.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*/
88

99
/**
10-
* Maximum number of concurrent filesystem reads allowed across worker tasks.
10+
* Maximum number of concurrent file system read/stat operations to prevent OS file descriptor exhaustion.
1111
*/
1212
export const MAX_CONCURRENT_READS = 16;
1313

‎packages/angular/build/src/utils/resolve-assets.ts‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,14 @@ export async function resolveAssets(
4545

4646
return [{ source: src, destination: path.join(entry.output, filePath) }];
4747
}
48+
49+
if (!stats.isSymbolicLink()) {
50+
return [];
51+
}
4852
} catch {
4953
// File does not exist or cannot be accessed.
54+
return [];
5055
}
51-
52-
return [];
5356
}
5457
}
5558

0 commit comments

Comments
 (0)