Skip to content

Commit

Permalink
fix(@angular-devkit/build-angular): avoid collect stats from chunks w…
Browse files Browse the repository at this point in the history
…ith no files

This commit updates to bundle stats logic to skip checking chunks with no files.

Closes #23717

(cherry picked from commit 7de9b47)
  • Loading branch information
alan-agius4 authored and clydin committed Aug 10, 2022
1 parent a37f0a5 commit 3e19c84
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -172,7 +172,7 @@ export class NgBuildAnalyticsPlugin {
protected _collectBundleStats(compilation: Compilation) {
const chunkAssets = new Set<string>();
for (const chunk of compilation.chunks) {
if (!chunk.rendered) {
if (!chunk.rendered || chunk.files.size === 0) {
continue;
}

Expand Down

0 comments on commit 3e19c84

Please sign in to comment.