You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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