-
Hi! TL;DR: Is using I want to replace some custom Babel plugins (that transform their input, e.g. remove imports and their definitions) that are used in an npm package by a variety of users. While I know some Rust I'm by no means an expert and other possible contributors to that code also don't really know Rust. I couldn't get an answer from the docs for when to use https://swc.rs/docs/usage/core and when to write a transformer like shown in https://swc.rs/docs/plugin/ecmascript/getting-started. While I'd like to get better at Rust and choosing the second option will surely help with that, the first option seems like a safer bet as:
Are there any downsides to using Would https://napi.rs/ help with distributing the plugin to more platforms and better automatic handling of the WASM binary loading? All in all I'm just looking for the potential trade-offs and if they are worth it, because if the gap isn't that big then the added benefit of being able to migrate faster from Babel to SWC is worth it. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
JS plugins will be dropped once we finish other works for v2 |
Beta Was this translation helpful? Give feedback.
-
I'm not sure what
exactly means.
|
Beta Was this translation helpful? Give feedback.
JS plugins will be dropped once we finish other works for v2