How do I use a regular transformer within a program transformer? #29
Answered
by
nonara
LukasMachetanz
asked this question in
Q&A
|
Hey! I am wondering of it is possible to get the Thanks. Greets. |
Answered by
nonara
Jan 31, 2021
Replies: 1 comment 10 replies
|
Effectively, using a "program transformer" requires a good understanding of the TypeScript Compiler API. To help on that journey, I've created a short guide on how to get better acclimated with it. Please have a read here: Advice for working with the TS Compiler API While I believe that will be helpful for you and others moving forward, I recognize that having a more complete example on how to do this would also be helpful, so I've written the following example: Example of transforming a
|
10 replies
Answer selected by
nonara
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Effectively, using a "program transformer" requires a good understanding of the TypeScript Compiler API.
To help on that journey, I've created a short guide on how to get better acclimated with it. Please have a read here: Advice for working with the TS Compiler API
While I believe that will be helpful for you and others moving forward, I recognize that having a more complete example on how to do this would also be helpful, so I've written the following example:
Example of transforming a
Progamwith additional AST transformations