Modern.js Module uses esbuild to build toolkits and component libraries, and Rsbuild focuses on solving web application building scenarios.
Modern.js Module is based on esbuild for building and cannot use tools from the webpack-related ecosystem.
To allow reuse of the webpack and Rspack ecosystems, we have developed Rslib, which is the next generation library development tools that will provide better build performance and plugin ecosystem. You can refer to the Rslib repository for more information.