Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature request] Support JSX/TSX Files #40

Open
hydrosquall opened this issue Aug 24, 2019 · 1 comment
Open

[feature request] Support JSX/TSX Files #40

hydrosquall opened this issue Aug 24, 2019 · 1 comment

Comments

@hydrosquall
Copy link

Hi,

Thanks for the great work on this library! I was hoping to use this tool to analyze a react/typescript based project, but ran into some errors relating to babel being unable to find a class name transformation plugin.

I saw that vue files are supported, and was hoping to extend that to the react ecosystem as well. Thanks for the consideration!

@hydrosquall
Copy link
Author

Update: I've found that jsx files work sometimes, but not always. TSX files are not working at all. I see that the underlying esprima parser already has the jsx flag set to true, further testing with react projects is needed to see why it's only working some of the time.

jsx: true

An alternate approach might be to investigating how to generate callgraphs using some of the non-esprima JS parsers (see the JS listings under AST Explorer), but that would probably be considerably more involved work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant