-
Hi! At Shopify we're trying out implementing SWC in our jest tests (and likely later our build process) as an optimization over babel. Unfortunately, there are some home grown babel plugins we use that we will need to replace. I noticed there is a plugin section in the docs about how to make custom transforms, which I was hoping I could take advantage of. Unfortunately, I can't actually find an example of how to use these plugins (whether in the I'd appreciate any guidance on this, or a link if I just missed a doc page 😅 Thanks! edit Trawling through github I've found some references to a |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 16 replies
-
Currently, there's no good plugin system. I think the js plugin is not a good fit for swc, and I'm going to remove js plugin api in v2. Currently, many users depend on swc from rust side and build their own binaries, including wasm target. From rust-side PoV, swc is quite modular and I can help you if you are going to do so. |
Beta Was this translation helpful? Give feedback.
-
It took long, but let me mark this as answered via #3540 and would like to suggest to try out new plugin interfaces. There are rough edges still, hope to get some feedback to improve it. |
Beta Was this translation helpful? Give feedback.
It took long, but let me mark this as answered via #3540 and would like to suggest to try out new plugin interfaces. There are rough edges still, hope to get some feedback to improve it.