CircuitSacul
CircuitSacul7mo ago

Can I use deno_ast to transpile arbitrary typescript?

I'm just wondering if it's safe to use deno_ast to transpile arbitrary (user-generated) typescript to javascript.
3 Replies
bartlomieju
bartlomieju7mo ago
It is, but you must provide proper configuration to I'd
CircuitSacul
CircuitSacul7mo ago
can you provide more info on that? What configuration?
bartlomieju
bartlomieju7mo ago
deno_ast has some sort of default transpiration options that might not be correct for the exact TS you're trying to trasnpilr. I encourage you to give it a go with defaults and see if it works. If not you will have to treat them - i can give some examples ion Monday as I'm currently AFK