A question about swcPlugins logging #7880
Answered
by
coder-xiaotian
coder-xiaotian
asked this question in
Q&A
-
SummaryI have a swc plugin "use-client", I want to print some info when run this plugin, I used tracing in my code, but it doesn't work when I use in a demo next.js application. Additional informationnext.js version: 13.4.9
os: Mac OS 13.4.9
chrome version: 115.0.5790.170 ExampleNo response |
Beta Was this translation helpful? Give feedback.
Answered by
coder-xiaotian
Aug 28, 2023
Replies: 1 comment 3 replies
-
I tried to run 'cargo test' locally using this repo, but still haven't printed anything. Is there a detailed document explaining how to print debugging logs in the plugin. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for your reply. I just found out I can use
println!
in my plugin's code directly, after that it can print log in next.js application.