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/rspeedy/rspeedy.bundlefilenamecontext.md.
Rspeedy logo
Rspeedy
  • 简体中文
  • Home > @lynx-js/rspeedy > BundleFilenameContext

    BundleFilenameContext interface

    The context passed to the Filename.bundle function.

    Signature:

    export interface BundleFilenameContext 

    Properties

    Property

    Modifiers

    Type

    Description

    entryName?

    string | undefined

    (Optional) The name of the entry.

    It is undefined for lazy bundles, since a lazy bundle name is resolved per async chunk (use the [name] placeholder in the returned string instead).

    lazyBundle

    boolean

    Whether the filename is being resolved for a lazy bundle (async chunk) instead of the main bundle of an entry.

    This allows you to control the main bundle and the lazy bundles with a single function, without needing a dedicated lazyBundle field.

    platform

    string

    The environment (platform) name, e.g. 'lynx' or 'web'.

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