Modern.js internally encapsulates Rsbuild, and supports seamless switching between Rspack and webpack.
Modern.js has deprecated support for webpack, which will be removed in the next major version. It is recommended to use Rspack as the bundler.
From the building perspective, Modern.js can be divided into three-layers, from top to bottom:
The documentation address of Rsbuild is: https://rsbuild.rs/
In this documentation, you can learn about the detailed introduction of Rsbuild, and you can also find complete usage guides for various building capabilities.
If you want to understand the use of build configurations, it is recommended that you read the Modern.js documentation first, because the build configurations and defaults in Modern.js are not exactly the same as Rsbuild.
In Modern.js, you can register Webpack plugins, Rspack plugins, or Rsbuild plugins:
Rsbuild provides rich build capabilities, including JavaScript compilation, CSS compilation, static assets processing, code hot update, code compression, TS type checking, and dozens of other capabilities.
We recommend that you read 「Rsbuild - All Features」 to learn about all the features provided by Rsbuild.