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/packages/external-bundle-rsbuild-plugin/interfaces/ExternalsPresetContext.md.
Lynx
  • 简体中文
  • 接口: ExternalsPresetContext

    传递给 externals 预设解析器的上下文。

    属性

    environmentName?

    optional environmentName?: string

    正在解析的 Rsbuild environment(例如 'lynx'、'web')。

    备注

    预设通过它选择特定于 environment 的产物,例如内置的 reactlynx 预设在 web environment 下解析 web 编码的 react.web.bundle,在其他 environment 下解析 react.lynx.bundle。


    rootPath

    rootPath: string

    当前 Rsbuild 项目的根路径。

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