Rsbuild types
This section describes some of the type definitions provided by the Rsbuild.
RsbuildInstance
The type of Rsbuild instance, corresponding to the return value of the createRsbuild method.
RsbuildConfig
The type of Rsbuild configuration.
You can also import the type definitions of each field in the Rsbuild config:
NormalizedConfig
The type of Rsbuild configuration after normalization, corresponding to the return value of the getNormalizedConfig method.
You can also import the type definitions of each field in the normalized config:
NormalizedEnvironmentConfig
The type of Rsbuild environment configuration after normalization, corresponding to the return value of the getNormalizedConfig({ environment }) method.
RsbuildContext
The type of the context property in the Rsbuild instance.
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.
RsbuildPluginAPI
The API interface that Rsbuild exposes to plugins through the setup function.
It allows plugins to interact with the build process, modify configurations, register hooks, and access context information.
RsbuildTarget
The type of build target.
CreateRsbuildOptions
The param type of createRsbuild method.
InspectConfigOptions
The param type of rsbuild.inspectConfig method.
Rspack
Includes all types exported by @rspack/core, such as Rspack.Configuration.
Others
See @rsbuild/core - src/index.ts for all exported types.

