Commit a7b7e8a 1 parent 1b53f91 commit a7b7e8a Copy full SHA for a7b7e8a
File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -174,7 +174,9 @@ export default class BundleGraph {
174
174
: null ;
175
175
invariant ( assetGraphRootNode != null && assetGraphRootNode . type === 'root' ) ;
176
176
177
- for ( let [ nodeId , node ] of assetGraph . nodes . entries ( ) ) {
177
+ assetGraph . dfsFast ( nodeId => {
178
+ let node = assetGraph . getNode ( nodeId ) ;
179
+
178
180
if ( node != null && node . type === 'asset' ) {
179
181
let { id : assetId } = node . value ;
180
182
// Generate a new, short public id for this asset to use.
@@ -190,7 +192,7 @@ export default class BundleGraph {
190
192
} else if ( node != null && node . type === 'asset_group' ) {
191
193
assetGroupIds . set ( nodeId , assetGraph . getNodeIdsConnectedFrom ( nodeId ) ) ;
192
194
}
193
- }
195
+ } ) ;
194
196
195
197
let walkVisited = new Set ( ) ;
196
198
function walk ( nodeId ) {
You can’t perform that action at this time.
0 commit comments