Rspeedy logo
Rspeedy

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.

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