source.tsconfigPath
- Type:
string - Default:
'tsconfig.json'
Configure a custom tsconfig.json file path to use, can be a relative or absolute path.
Purpose
The tsconfig.json configuration file affects the following behaviors of Rsbuild:
- The
pathsfield configures Path Aliases. - Sets the scope and rules for the @rsbuild/plugin-type-check.
Example
The value of source.tsconfigPath can be set to a relative or an absolute path. Relative path will be resolved relative to the project root directory.
- Relative path example:
rsbuild.config.ts
- Absolute path example:

