For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt, and this page is available as Markdown at /next/api/rspeedy/lynx-bundle-rslib-config.externalobject.md.
Rspeedy logo
Rspeedy
  • English
  • Home > @lynx-js/lynx-bundle-rslib-config > ExternalObject

    ExternalObject interface

    Object form of an external mapping.

    Use this instead of the plain global-name form when the external library is mounted asynchronously (as a Promise) by the consuming application, i.e. the matching pluginExternalBundle external is configured with async: true.

    Signature:

    export interface ExternalObject 

    Properties

    Property

    Modifiers

    Type

    Description

    async?

    boolean

    (Optional) Whether the library is mounted as a Promise resolving to the library namespace. When enabled, the external is emitted as a promise external so importing modules await the mounted value instead of reading it synchronously.

    libraryName

    string | string[]

    The global name (with optional subpath) of the external library.

    Except as otherwise noted, this work is licensed under a Creative Commons Attribution 4.0 International License, and code samples are licensed under the Apache License 2.0.