segmentio/dependency-report

Ability to use custom parser?

Closed this issue · 1 comments

After installing and running dependency-report cli, I too was receiving the errors:

AST Runner failed on filepath: ./src/...

Most likely, this is due to the fact we're using ES6 decorators (i.e. @withApollo). When upgrading to @babel/parser instead of babylon, it was able to parse the jsx files without error.

Maybe there could be an option to DependencyReport such as parser where one could leverage whatever parser/parser options they'd like?

I've added this in #10