Plugin

Rsbuild provides a powerful plugin system that allows for user extension. Rspeedy leverages this plugin system directly.

Plugins written by developers can modify the default behavior of Rspeedy/Rsbuild and add various additional features, including but not limited to:

  • Register lifecycle hooks
  • Transform module source code
  • Modify Rsbuild configuration
  • Modify Rspack configuration

Find Plugins

Before finding plugin, you may want to check if the feature you want is already included in Rspeedy Configuration.

Rsbuild Plugins

The following Rsbuild plugins can be used in Rspeedy.

Rspack/Webpack Plugins

The following Rspack/Webpack plugins can be used in Rspeedy.

INFO

Rspack/Webpack plugins should be placed in tools.rspack.plugins.

Write Plugins

If none of the existing ecosystem plugins meet your requirements, you might consider writing your own plugin.

Rsbuild Plugin API

See Rsbuild - Plugin Hooks for more details.

Rspack Plugin API

See Rspack - Compiler Hooks and Rspack - Compilation Hooks for more details.

Except as otherwise noted, this work is licensed under a Creative Commons Attribution 4.0 International License, and code samples are licensed under the Apache License 2.0.