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