How to use swc in rust to compile a js/ts file ? #7662
Unanswered
vishnuvardhanachari
asked this question in
Q&A
Replies: 1 comment
-
You need to call GLOBALS.set(&Default::default(), |_| {
...
compiler. process_js_file( ... )
}) GLOBALS is from swc_common, its used to store marks |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Team, I'm trying to compile js/ts inside the rust code. It would be great if someone can guide me or point me in the right direction. Following code is throwing error
Beta Was this translation helpful? Give feedback.
All reactions