plugins
is used to register Rsbuild plugins.
Rslib and Rsbuild share the same plugin system, so you can use Rsbuild plugins in Rslib.
Currently, some plugins have not been adapted to the bundleless mode of Rslib, such as the Vue plugin and Svelte plugin. Therefore, these plugins can only be used in the bundle mode.
You can register Rsbuild plugins in rslib.config.*
using the plugins
option, see Rsbuild - plugins.
The following are official plugins that can be used in Rsbuild, and applicable to Rslib.
Plugins available for React:
Plugins available for Vue:
Plugins available for Preact:
Plugins available for Svelte:
.svelte
files).Plugins available for Solid:
The following are common framework-agnostic plugins:
publint
to lint npm packages after the build.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.