Commit 880a50c 1 parent dca408b commit 880a50c Copy full SHA for 880a50c
File tree 2 files changed +8
-4
lines changed
packages/angular/build/src
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -184,9 +184,6 @@ export async function executeBuild(
184
184
185
185
executionResult . outputFiles . push ( ...outputFiles ) ;
186
186
187
- const changedFiles =
188
- rebuildState && executionResult . findChangedFiles ( rebuildState . previousOutputInfo ) ;
189
-
190
187
// Analyze files for bundle budget failures if present
191
188
let budgetFailures : BudgetCalculatorResult [ ] | undefined ;
192
189
if ( options . budgets ) {
@@ -288,6 +285,8 @@ export async function executeBuild(
288
285
}
289
286
290
287
if ( ! jsonLogs ) {
288
+ const changedFiles =
289
+ rebuildState && executionResult . findChangedFiles ( rebuildState . previousOutputInfo ) ;
291
290
executionResult . addLog (
292
291
logBuildStats (
293
292
metafile ,
Original file line number Diff line number Diff line change @@ -40,6 +40,11 @@ export function logBuildStats(
40
40
ssrOutputEnabled ?: boolean ,
41
41
verbose ?: boolean ,
42
42
) : string {
43
+ // Remove the i18n subpath in case the build is using i18n.
44
+ // en-US/main.js -> main.js
45
+ const normalizedChangedFiles : Set < string > = new Set (
46
+ [ ...( changedFiles ?? [ ] ) ] . map ( ( f ) => basename ( f ) ) ,
47
+ ) ;
43
48
const browserStats : BundleStats [ ] = [ ] ;
44
49
const serverStats : BundleStats [ ] = [ ] ;
45
50
let unchangedCount = 0 ;
@@ -52,7 +57,7 @@ export function logBuildStats(
52
57
}
53
58
54
59
// Show only changed files if a changed list is provided
55
- if ( changedFiles && ! changedFiles . has ( file ) ) {
60
+ if ( normalizedChangedFiles . size && ! normalizedChangedFiles . has ( file ) ) {
56
61
++ unchangedCount ;
57
62
continue ;
58
63
}
You can’t perform that action at this time.
0 commit comments