Skip to content

Commit a1cb1f3

Browse files
Adjusted bundle milestone logging for consumers
1 parent 3179619 commit a1cb1f3

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

src/bundle.ts

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,17 +68,17 @@ export class Bundle {
6868
this.logger.trace(
6969
"Retaining file for later bundling",
7070
{
71-
path: file.path,
7271
bundleName: this.name,
72+
path: file.path,
7373
}
7474
);
7575
}
7676
else {
7777
this.logger.trace(
7878
"Ignoring unused file",
7979
{
80-
path: file.path,
8180
bundleName: this.name,
81+
path: file.path,
8282
}
8383
);
8484
}
@@ -93,11 +93,11 @@ export class Bundle {
9393
}
9494

9595
// Perform bundling, and collect results
96-
this.logger.trace(
96+
this.logger.info(
9797
"Creating bundle stream",
9898
{
99-
files: this.initialPaths,
10099
bundleName: this.name,
100+
inFiles: this.initialPaths,
101101
}
102102
);
103103
const chunks = await getStream.array(
@@ -121,6 +121,12 @@ export class Bundle {
121121
}
122122
}
123123

124+
// Perform bundling, and collect results
125+
this.logger.info(
126+
"Bundle stream completed",
127+
{ bundleName: this.name }
128+
);
129+
124130
return chunks as Vinyl[];
125131
}
126132
else {

0 commit comments

Comments
 (0)