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:
Plugins available for the Vue:
Plugins available for the Preact:
Plugins available for the Svelte:
.svelte
files).Plugins available for the Solid:
The following are common framework-agnostic plugins:
You can find the source code of all official plugins in web-infra-dev/rsbuild and rspack-contrib.
You can check out the Rsbuild plugins provided by the community at awesome-rspack - Rsbuild Plugins.
You can also discover more Rsbuild plugins on npm by searching for the keyword rsbuild-plugin.