deno_ast 1:1 token location mapping
Is there a way to have transpiled token locations correspond to where they're located in the original source?
For example, if you have
It would transpile to
2 Replies
check out ts-blank-space: https://bloomberg.github.io/ts-blank-space/
ts-blank-space
A small, fast, pure JavaScript type-stripper that uses the official TypeScript parser.
Ah, I just saw the title of the question, I don't think deno ast supports this (because the underlying parser doesn't)