For AI agents: the complete documentation index is available at /zh/llms.txt, the full documentation bundle is available at /zh/llms-full.txt, and this page is available as Markdown at /zh/api/lynx-bundle-rslib-config.externalobject.md.
这是开发预览网站。请访问正式文档 lynxjs.org

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.