[Playground] AST viewer #10747
magic-akari
started this conversation in
Ideas
Replies: 2 comments 1 reply
-
I agree. I always check the code ast with swc ast viewer. It provides the ast info that is closer to the rust struct than the playground. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I think we can create one and document that it’s not a public API |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I maintain the SWC AST Viewer. Unlike the current SWC Playground, it presents AST and token results using Rust-style formatting instead of JSON.
It would be more beneficial to integrate this functionality directly into the official SWC Playground. This would require exposing an additional debug output in the SWC wasm bindings.
Reference: SWC AST Viewer
Source Code: https://github.com/magic-akari/swc-ast-viewer
Beta Was this translation helpful? Give feedback.
All reactions