Rslib types
This section describes some of the type definitions provided by the Rslib.
RslibInstance
The type of Rslib instance, corresponding to the return value of the createRslib method.
RslibConfig
The type of Rslib configuration.
You can also import the type definitions of each field in the Rslib config:
RsbuildPlugin
Defines the structure and behavior of an Rsbuild plugin.
Rsbuild plugins provide a standardized way to extend build functionality through lifecycle hooks and configuration modifications.
CreateRslibOptions
The param type of createRslib method.
BuildOptions
The param type of rslib.build method.
StartMFDevServerOptions
The param type of rslib.startMFDevServer method.
InspectConfigOptions
The param type of rslib.inspectConfig method.
Rspack
Includes all types exported by @rspack/core, such as Rspack.Configuration.
Rsbuild
Includes all types exported by @rsbuild/core, such as Rsbuild.ToolsConfig.
See @rsbuild/core - src/index.ts for all exported types of Rsbuild.
Others
See @rslib/core - src/index.ts for all exported types.
