RequireJS dependency graph plugin
I found that
r.js does not execute
define function because it uses AST. It means that wrapping
define function has no meaning. I think I need to use parentMap to know dependency, but currently I cannot find how to use it from RequireJS plugin. I guess I need to modify r.js itself to make feature.
So I decided to continue using
console.log. You can try it on GitHub.