DEV Community

Discussion on: How Webpack uses dependency graph to build modules

Collapse
 
anduser96 profile image
Andrei Gatej

Thanks for sharing!

I think that by using this approach, it's also possible to detect circular dependencies, i.e. if the current visited node is already in the set, it means there is a circular dependency.

Collapse
 
jasmin profile image
Jasmin Virdi

Yeah, definitely you can track that down using this approach! 😀