If you need to configure the on-demand import of the component library, you can configure it through source.transformImport, which is equivalent to babel-plugin-import.
For the sake of compilation performance, Rsbuild will not perform ESLint verification during the compilation process by default. If you require this feature, you can use Rsbuild's ESLint plugin.
If you need to upload static assets such as JS and CSS to CDN for use, you can set the URL prefix of static assets through the output.assetPrefix configuration.
For the production build, we can remove the console
from the code, so as to avoid the log of the development mode being output to the production.
Rsbuild provides a configuration option to remove console by default, please see performance.removeConsole.
By using the Rsbuild debug mode, you can view the Rspack configuration generated by Rsbuild.
You can enable the debug mode of Rsbuild by adding the DEBUG=rsbuild
environment variable when performing the build. In this mode, the internally generated Rspack configuration will be outputted to the "dist" directory.
By default, Rsbuild will print all error and warning logs generated by the build process.
If a large number of warning logs are generated due to the three-party package, it cannot be processed temporarily, and you want to ignore it. Specific warning logs can be ignored through the ignoreWarnings
configuration provided by Rspack.
For details, please refer to: ignoreWarnings.