I read about SWC at https://swc-project.github.io/
It support webpack with https://swc-project.github.io/docs/usage-swc-loader
I thinks webpack should replace babel with swc.
This will download prebuilt binary instead of building swc if possible. To use swc in other environments, you should install nightly version of rust first. It can be done with
curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain=nightly
Not sure too many people would be happy about depending on yet another language. It could work.
Sprockets used to rely on a factory pattern that allowed to switch between different javascript runtimes via execjs. I believe here is a perfect situation where we could do the same thing and allow to switch between different transpiller implementations.
Most helpful comment
Sprockets used to rely on a factory pattern that allowed to switch between different javascript runtimes via execjs. I believe here is a perfect situation where we could do the same thing and allow to switch between different transpiller implementations.