source.alias
Deprecation Warning
source.alias is deprecated, please use resolve.alias instead.
- Type:
- Default:
undefined
Create aliases to import or require certain modules, same as the resolve.alias config of Rspack.
Tip
For TypeScript projects, you only need to configure compilerOptions.paths in the tsconfig.json file. The Rsbuild will automatically recognize it, so there is no need to configure the source.alias option separately. For more details, please refer to Path Aliases.
Info
The usage of this configuration item is exactly the same as that of Rsbuild. For detailed information, please refer to Rsbuild - source.alias.