I'm not familiar with rust and trynna using swc to replace the babel
but I found @swc/core
doesn't offer the api to generate code AST, so I want to write one using rust, is it possible to generate jsx ast?
I'm not familiar with rust and trynna using swc to replace the babel
but I found @swc/core
doesn't offer the api to generate code AST, so I want to write one using rust, is it possible to generate jsx ast?
Copyright © 2021 Jogjafile Inc.
Here is a good place to start: https://github.com/swc-project/swc/blob/main/crates/swc_ecma_parser/examples/typescript.rs but link can get invalid so I also pasted the code:
I never really worked or cared about this. All it took was 5min of browsing the repository, all the resources are there but if you are new to rust, I recommend the rust book first.