@@ -16,6 +16,7 @@ import type {StaticRunOpts, RunAPI} from '../RequestTracker';
16
16
import type { EntryResult } from './EntryRequest' ;
17
17
import type { PathRequestInput } from './PathRequest' ;
18
18
import type { Diagnostic } from '@parcel/diagnostic' ;
19
+ import logger from '@parcel/logger' ;
19
20
20
21
import invariant from 'assert' ;
21
22
import nullthrows from 'nullthrows' ;
@@ -201,7 +202,9 @@ export class AssetGraphBuilder {
201
202
'A root node is required to traverse' ,
202
203
) ;
203
204
205
+ let visitedAssetGroups = new Set ( ) ;
204
206
let visited = new Set ( [ rootNodeId ] ) ;
207
+
205
208
const visit = ( nodeId : NodeId ) => {
206
209
if ( errors . length > 0 ) {
207
210
return ;
@@ -224,6 +227,10 @@ export class AssetGraphBuilder {
224
227
( ! visited . has ( childNodeId ) || child . hasDeferred ) &&
225
228
this . shouldVisitChild ( nodeId , childNodeId )
226
229
) {
230
+ if ( child . type === 'asset_group' ) {
231
+ visitedAssetGroups . add ( childNodeId ) ;
232
+ }
233
+
227
234
visited . add ( childNodeId ) ;
228
235
visit ( childNodeId ) ;
229
236
}
@@ -233,6 +240,14 @@ export class AssetGraphBuilder {
233
240
visit ( rootNodeId ) ;
234
241
await this . queue . run ( ) ;
235
242
243
+ logger . verbose ( {
244
+ origin : '@parcel/core' ,
245
+ message : 'Asset graph walked' ,
246
+ meta : {
247
+ visitedAssetGroupsCount : visitedAssetGroups . size ,
248
+ } ,
249
+ } ) ;
250
+
236
251
if ( this . prevChangedAssetsPropagation ) {
237
252
// Add any previously seen Assets that have not been propagated yet to
238
253
// 'this.changedAssetsPropagation', but only if they still remain in the graph
0 commit comments