string
'tsconfig.json'
Configure a custom tsconfig.json file path to use, can be a relative or absolute path.
The tsconfig.json
configuration file affects the following behaviors of Rsbuild:
paths
field configures Path Aliases.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.
export default {
source: {
tsconfigPath: './tsconfig.custom.json',
},
};
import path from 'node:path';
export default {
source: {
tsconfigPath: path.join(__dirname, 'tsconfig.custom.json'),
},
};