Rspeedy logo
Rspeedy

Home > @lynx-js/lynx-bundle-rslib-config > ExternalsPresetValue

ExternalsPresetValue type

How an externals preset is enabled.

true mounts the preset's libraries synchronously. The { async: true } object form mounts them asynchronously (as Promises), for the web target where external bundles are loaded via fetchBundle().then — see ExternalObject.async.

Signature:

export type ExternalsPresetValue = boolean | {
    async?: boolean;
};
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.