-
Is there any guide to write a plugin? All I found was a guide on howto build deprecated plugins: https://swc.rs/docs/usage-plugin |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 8 replies
-
@jantimon hope this helps https://github.com/aelbore/lit-swc-transpiler |
Beta Was this translation helpful? Give feedback.
-
I've been thinking about some issues like AST compat problem, and I decided to just implement plugin system under experimental flags and see what happens. |
Beta Was this translation helpful? Give feedback.
-
Is the plugin API going to be much different to the current Rust internal visitor implementation (e.g. how it is used here: https://github.com/vercel/next.js/blob/canary/packages/next/build/swc/src/styled_jsx/transform_css.rs)? And do you intend to add convenience helper methods like Babel had? |
Beta Was this translation helpful? Give feedback.
-
Please refer #3540 and try new plugin interfaces. We expect this to be an official recommended approach once stablized. |
Beta Was this translation helpful? Give feedback.
Please refer #3540 and try new plugin interfaces. We expect this to be an official recommended approach once stablized.