Home > @lynx-js/lynx-bundle-rslib-config
@lynx-js/lynx-bundle-rslib-config is the package that provides the configurations for bundling Lynx bundle with Rslib.
| Class | Description |
|---|---|
| ExternalBundleWebpackPlugin | The webpack plugin to build and emit the external bundle. |
| MainThreadRuntimeWrapperWebpackPlugin | The main-thread runtime wrapper for external bundle. |
| Function | Description |
|---|---|
| defineExternalBundleRslibConfig(userLibConfig, encodeOptions) | Get the rslib config for building Lynx external bundles. |
| Interface | Description |
|---|---|
| EncodeOptions | The options for encoding the external bundle. |
| ExternalBundleWebpackPluginOptions | The options for ExternalBundleWebpackPlugin. |
| MainThreadRuntimeWrapperWebpackPluginOptions | The options of MainThreadRuntimeWrapperWebpackPlugin. |
| Variable | Description |
|---|---|
| defaultExternalBundleLibConfig | The default lib config for external bundle. |
| LAYERS | The Layer name of background and main-thread. |