To be honest. When we first started talking about rslib. I thought it was virtually impossible. Webpacks architecture is really really not designed to be an input format. It’s designed to be the “last mile” - unwinding that, while still keeping the webpack runtime capability
We originally built Rslib to unify ByteDance’s web apps and JS libs around Rspack.
Getting there wasn’t easy. Rspack inherited an architecture primarily designed for bundling apps, so we made many improvements to produce clean ESM for libs.
Today, Rslib 1.0 is here and already


