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