I need some help to write a "use client" plugin #7619
-
I want to write an swc plugin to transform the mui component to the client component automatically. But now I meet some problems. This is my repository https://github.com/coder-xiaotian/swc-useclient.
I hope someone can help me. I build my plugin using
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I have found the solution. Just set the
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
I have found the solution. Just set the
lto
to false in Cargo.toml.