@@ -414,6 +414,13 @@ export function buildWebpackBrowser(
414
414
const processActions : typeof actions = [ ] ;
415
415
let processRuntimeAction : ProcessBundleOptions | undefined ;
416
416
for ( const action of actions ) {
417
+ if ( options . verbose ) {
418
+ context . logger . info (
419
+ `[${ new Date ( ) . toISOString ( ) } ] Differential loading file queued: ${
420
+ action . filename
421
+ } `,
422
+ ) ;
423
+ }
417
424
// If SRI is enabled always process the runtime bundle
418
425
// Lazy route integrity values are stored in the runtime bundle
419
426
if ( action . integrityAlgorithm && action . runtime ) {
@@ -434,6 +441,22 @@ export function buildWebpackBrowser(
434
441
for await ( const result of differentialLoadingExecutor . processAll (
435
442
processActions ,
436
443
) ) {
444
+ if ( options . verbose ) {
445
+ if ( result . original ) {
446
+ context . logger . info (
447
+ `[${ new Date ( ) . toISOString ( ) } ] Differential loading file processed: ${
448
+ result . original . filename
449
+ } `,
450
+ ) ;
451
+ }
452
+ if ( result . downlevel ) {
453
+ context . logger . info (
454
+ `[${ new Date ( ) . toISOString ( ) } ] Differential loading file processed: ${
455
+ result . downlevel . filename
456
+ } `,
457
+ ) ;
458
+ }
459
+ }
437
460
processResults . push ( result ) ;
438
461
}
439
462
} finally {
@@ -452,13 +475,26 @@ export function buildWebpackBrowser(
452
475
) ;
453
476
}
454
477
478
+ if ( options . verbose ) {
479
+ context . logger . info (
480
+ `[${ new Date ( ) . toISOString ( ) } ] Differential loading processing complete.` ,
481
+ ) ;
482
+ }
483
+
455
484
spinner . succeed ( 'ES5 bundle generation complete.' ) ;
456
485
457
486
if ( i18n . shouldInline ) {
458
487
spinner . start ( 'Generating localized bundles...' ) ;
459
488
const inlineActions : InlineOptions [ ] = [ ] ;
460
489
for ( const result of processResults ) {
461
490
if ( result . original ) {
491
+ if ( options . verbose ) {
492
+ context . logger . info (
493
+ `[${ new Date ( ) . toISOString ( ) } ] i18n localize file queued: ${
494
+ result . original . filename
495
+ } `,
496
+ ) ;
497
+ }
462
498
inlineActions . push ( {
463
499
filename : path . basename ( result . original . filename ) ,
464
500
// Memory mode is always enabled for i18n
@@ -472,6 +508,13 @@ export function buildWebpackBrowser(
472
508
} ) ;
473
509
}
474
510
if ( result . downlevel ) {
511
+ if ( options . verbose ) {
512
+ context . logger . info (
513
+ `[${ new Date ( ) . toISOString ( ) } ] i18n localize file queued: ${
514
+ result . downlevel . filename
515
+ } `,
516
+ ) ;
517
+ }
475
518
inlineActions . push ( {
476
519
filename : path . basename ( result . downlevel . filename ) ,
477
520
// Memory mode is always enabled for i18n
@@ -492,10 +535,14 @@ export function buildWebpackBrowser(
492
535
options . subresourceIntegrity ? 'sha384' : undefined ,
493
536
) ;
494
537
try {
538
+ let localizedCount = 0 ;
495
539
for await ( const result of i18nExecutor . inlineAll ( inlineActions ) ) {
540
+ localizedCount ++ ;
496
541
if ( options . verbose ) {
497
542
context . logger . info (
498
- `Localized "${ result . file } " [${ result . count } translation(s)].` ,
543
+ `[${ new Date ( ) . toISOString ( ) } ] (${ localizedCount } /${
544
+ inlineActions . length
545
+ } ) Localized "${ result . file } " [${ result . count } translation(s)].`,
499
546
) ;
500
547
}
501
548
for ( const diagnostic of result . diagnostics ) {
0 commit comments