Interacting with Typescript transpilation process #11156
Soulusions
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
I've recently tried screwing around with reflection in Bun and I wanted to interact with the typescript transpilation process to generate data from types.
While using tsc you can use the compiler API (though it's still not stable), but with Bun, the transpilation process is handled by the runtime itself, so you can't really do that.
I tried using the Bun build API, which while it does let you parse the contents of a ts file, you can't exactly tap into the transpilation process in the same way as you can in tsc.
So my question is whether it would make sense / be possible to, either through Bun build or actual typescript transformers, have the ability to do this.
Though if the plan is to simply implement the typescript transformers API, it would make sense for implementation to not start yet since things aren't stable yet.
Beta Was this translation helpful? Give feedback.
All reactions