In the image annotated "time to add all deps & bfs graph traversal" and the images right underneath, webpack seems to be doing a DFS because it's just relying on plain old recursion without keeping some sort of a queue in addModuleDependencies(). The annotation says otherwise.
In the image annotated "time to add all deps & bfs graph traversal" and the images right underneath, webpack seems to be doing a DFS because it's just relying on plain old recursion without keeping some sort of a queue in
addModuleDependencies()
. The annotation says otherwise.