-
Sorry I'm new to swc, how to use swc_ecma_minifier correctly?
and it panic: You should perform this operation in the closure passed to |
Beta Was this translation helpful? Give feedback.
Answered by
RiESAEX
Mar 23, 2022
Replies: 2 comments 1 reply
-
you need to wrap it with let globals = Globals::new();
GLOBALS.set(&globals,||{
// your code
}) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
JSerFeng
-
I want to ask how to run minifier using multiple threads, because I found that it was actually running slowly. |
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
you need to wrap it with