Replies: 1 comment
-
#4241 is related, but seems no answer has been given to that, so I suppose I might be out of luck. The difference between my and that question is that I'm just asking it for regular vanilla JS (transpiled from TS), rather than JSX. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Using https://swc.rs/docs/usage/core#transform I can transform typescript into ecmascript AST as far as I can tell. Is it possible to then also extract part of the AST (e.g. a single function) and transform it into actual ecmascript? The AST would originally come from an AST generated by SWC, so it should be compatible. However I cannot seem to find the function which would allow me to turn it into actual JS that I can evaluate on runtime.
Beta Was this translation helpful? Give feedback.
All reactions