You can read about the functionality of Rsbuild plugins and how to develop an Rsbuild plugin in the Plugin System documentation.
You can register Rsbuild plugins in the rsbuild.config.ts
file using the plugins
option. For more details, refer to plugins.
If you are using Rsbuild's JavaScript API, you can register the plugin using the addPlugins method.
The following are official plugins that can be used in Rsbuild.
Plugins available for the React framework:
Plugins available for the Vue framework:
Plugins available for the Svelte framework:
.svelte
files).The following are common framework-agnostic plugins:
You can find the source code of all official plugins in the web-infra-dev/rsbuild repository.