For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /configure/app/resolve/alias-strategy.md.

resolve.aliasStrategy

  • Type: 'prefer-tsconfig' | 'prefer-alias'
  • Default: 'prefer-tsconfig'

Set the strategy for path alias resolution, to control the priority relationship between the paths option in tsconfig.json and the resolve.alias option of Rsbuild.

Info

该配置项的使用方式与 Rsbuild 完全一致。详细信息请参考 Rsbuild - resolve.aliasStrategy。