How to detect circular dependencies from a project built using requir.js?
For instance
/* File: MyView.js */
define(['backbone','views/myview','object_x'], function(BB,V,X){
...
});
/* File: Object_X.js */
define(['backbone','jquery','views/myview','object_x'], function(BB,$,V,X){
...
});
what I mean is that as the project gets bigger, manually inspecting each file becomes a hassle.
Edit: How about detecting redundant dependencies?