I tried using
https://github.com/benjamn/recast which uses esprima by default according to the docs.
I executed against a small(120-ish lines) single js file which has only 2 small(60 lines) json files as external dependencies.
The outputted AST is over 30MB, growing to 120MB when formatted.
Is this normal? What kind of sizes is usual? Examples?
If not normal, what could be causing such a large size? It is difficult to search through millions of line of code and there are very few clues.
Additional information:
Code is private so can not share, but is just a class with static JS functions taking parameters(no references in the file so these shouldn't increase AST size much?) and uses module.exports, require format.
Any help would be much appreciated.
Regards.