question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support custom AST transformers

See original GitHub issue

Nice 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:closed
  • Created 6 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
zerkalicacommented, May 11, 2018

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.

1reaction
kastermestercommented, Mar 5, 2018

That was quick! I will try it out soon enough and report back if it works for me! 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found