mapping parsed program
I've adapted this example code for use in a program that then uses v8 to execute the resultant javascript. I'd like to be able to map errors from v8 back to the original text source (line and character) if possible. Is there an example that shows how to extract that information from a parsed module?
GitHub
swc/crates/swc_ecma_transforms_typescript/examples/ts_to_js.rs at m...
Rust-based platform for the Web. Contribute to swc-project/swc development by creating an account on GitHub.
1 Reply
tickling this thread again.. any insights about how to map lines between a parsed module output and input code string?
AI ended up helping me