AST visitor / walker in JS #9293
Closed
ivands
started this conversation in
Feature Request
Replies: 2 comments
-
I haven't checked yet but https://github.com/Rich-Harris/estree-walker should work. |
Beta Was this translation helpful? Give feedback.
0 replies
-
We now have https://www.npmjs.com/package/oxc-walker |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Will there be an official AST visitor/walker in JS?
SWC sadly doesn't have this.
I did find an AST walker third-party package for SWC but it has bugs.
It would be great if a fast Rust JS parser could provide this feature.
My use case is that I'm building a package that generates a cache-key/fingerprint of a JS file based on the code and it's dependency versions.
Beta Was this translation helpful? Give feedback.
All reactions