resolve.conditionNames
- Type:
string[] - Default: Same as Rspack's resolve.conditionNames
- Version:
>= 1.5.7
Specifies the condition names used to match entry points in the exports field of a package.
Example
The value of resolve.conditionNames overrides the default value of Rsbuild:
rsbuild.config.ts
Rspack config
resolve.conditionNames is provided by Rspack, see Rspack - resolve.conditionNames.
You can also configure it using tools.rspack:
rsbuild.config.ts
The difference between them is how the configuration is merged.
resolve.conditionNames replaces existing arrays when merging Rsbuild configurations, while tools.rspack.resolve.conditionNames merges with explicitly configured values. This does not include Rspack's defaults, which are applied later during initialization.

