Support custom AST transformers
See original GitHub issueNice project!
I really like the looks of this, and have, very briefly, tried it out. Well done!
I am looking into creating some personal toy projects in the future using Parcel (have only just tried it out so far, but have been very happy with the result), however much of my work revolves around using facebook/relay. To be able to use that properly I’d want to inject a custom AST transformer, which I see is on the TODO.
I wanted to know if you have any plans for how to implement this, I’d love to give a hand with it, but I’m not quite sure how it should be configured (given that tsconfig.json
AFAIK does not support configuring it).
Issue Analytics
- State:
- Created 6 years ago
- Comments:11 (5 by maintainers)
Top Results From Across the Web
Writing TypeScript custom AST Transformer (Part 1)
Unfortunately right now tsconfig.json does not allow specifying custom AST transformers. There're a couple of alternatives you can utilize, each ...
Read more >Customizing Angular builds with TypeScript AST transformers
The Angular CLI does not officially support TypeScript AST transfomers, but they can be used by tapping into the webpack configuration.
Read more >AST transformers option | ts-jest - GitHub Pages
One can also create custom TypeScript AST transformers and provide them to ts-jest to include into compilation process. The option is ...
Read more >Custom input transformation - documentation - IPython
When the user enters a line of code, it is first processed as a string. By the end of this stage, it must...
Read more >Create a custom architecture - Hugging Face
In this guide, dive deeper into creating a custom model without an AutoClass . ... For models that support multimodal tasks, Transformers offers...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I think, you can remove transformer chain and use ttypescript wrapper. Just require ttypescript in your code or provide option to require it instead of typescript. We prepare create PR https://github.com/cevek/ttypescript/pull/11. One chain for all transformer formats. Webpack and rollup loaders/plugins can be configured with ttypescript.
That was quick! I will try it out soon enough and report back if it works for me! 😃