For AI agents: the complete documentation index is available at /next/zh/llms.txt, the full documentation bundle is available at /next/zh/llms-full.txt, and this page is available as Markdown at /next/zh/api/build/source/alias.md.
Lynx
  • 简体中文
  • source.alias

    optional alias?: Record<string, string | false | string[]>

    仅适用于 Rspeedy

    此配置仅由 Rspeedy 的 lynx.config.ts 接受,Rsbuild + pluginLynx 不支持。请勿直接写入 rsbuild.config.ts,也不要传给 pluginLynx()。

    创建别名,以便更方便地 import 或 require 某些模块。

    已被弃用

    请使用 Resolve.alias 代替。

    默认值

    undefined
    除非另有说明,本项目采用知识共享署名 4.0 国际许可协议进行许可,代码示例采用 Apache License 2.0 许可协议进行许可。