Home > @lynx-js/externals-loading-webpack-plugin > ExternalsLoadingPluginOptions
ExternalsLoadingPluginOptions interface
The options of the ExternalsLoadingPlugin.
Signature:
Home > @lynx-js/externals-loading-webpack-plugin > ExternalsLoadingPluginOptions
The options of the ExternalsLoadingPlugin.
Signature:
export interface ExternalsLoadingPluginOptions |
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
string |
The name of the background layer. | ||
|
Record<string, ExternalValue> |
Specify the externals to be loaded. The externals should be Lynx Bundles. | ||
|
'lynx' | 'globalThis' | undefined |
(Optional) This option indicates what global object will be used to mount the library. In Lynx, the library will be mounted to If you have enabled share js context and want to reuse the library by mounting to the global object, you can set this option to 'lynx' | ||
|
string |
The name of the main thread layer. | ||
|
number | undefined |
(Optional) The number of additional attempts when fetching the external bundle times out ( | ||
|
number | undefined |
(Optional) The timeout in milliseconds for loading the externals. |

