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/rspeedy/interfaces/BundleFilenameContext.md.
Lynx
  • 简体中文
  • 接口: BundleFilenameContext

    传递给 Filename.bundle 函数的上下文。

    属性

    entryName?

    optional entryName?: string

    入口名称。

    对于 lazy bundle,该值为 undefined,因为 lazy bundle 的名称是按每个异步 chunk 解析的(请改为在返回的字符串中使用 [name] 占位符)。


    lazyBundle

    lazyBundle: boolean

    是否正在为 lazy bundle(异步 chunk)解析文件名,而非为入口的主 bundle 解析。

    这样你可以用单个函数同时控制主 bundle 和 lazy bundle,而无需专门的 lazyBundle 字段。


    platform

    platform: string

    environment(平台)名称,例如 'lynx' 或 'web'。

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