Skip to content

Expose traverse

Choose a tag to compare

@mrjoelkemp mrjoelkemp released this 19 Mar 18:11

Useful if you want to traverse a node (during an ongoing traversal of a larger tree) with a custom callback.

Specific example:

Once I find a node representing an AMD define(function(require){}); syntax, look within the function(require){} for nodes that represent functions calls to require to pull out their literal dependencies.