Rslib will soon support Module Federation.
This allows a library to concurrently generate ESM, CJS, Module Federation, and DTS outputs in a single build.
Libraries built with Rslib can not only be published to npm. They can also provide remote modules for use by MF consumers.