btford / ngmin

**deprecated** AngularJS Pre-minifier –> use ng-annotate –>
https://github.com/olov/ng-annotate
860 stars 42 forks source link

More efficient traversal #18

Closed btford closed 11 years ago

btford commented 11 years ago

In order to account for chaining and module references, ngmin takes multiple passes in the AST to find all of the injectable calls. It should be possible to eliminate these multiple passes by more carefully examining how to traverse the AST.

See especially: https://github.com/btford/ngmin/blob/master/main.js#L15