How do I use a regular transformer within a program transformer? #29
-
Hey! I am wondering of it is possible to get the Thanks. Greets. |
Beta Was this translation helpful? Give feedback.
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
|
Beta Was this translation helpful? Give feedback.
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
Progam
with additional AST transformations