这是开发预览网站。请访问正式文档 lynxjs.org

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

lynx-bundle-rslib-config package

@lynx-js/lynx-bundle-rslib-config is the package that provides the configurations for bundling Lynx bundle with Rslib.

Classes

Class

Description

ExternalBundleWebpackPlugin

The webpack plugin to build and emit the external bundle.

MainThreadRuntimeWrapperWebpackPlugin

The main-thread runtime wrapper for external bundle.

Functions

Function

Description

defineExternalBundleRslibConfig(userLibConfig, encodeOptions)

Get the rslib config for building Lynx external bundles.

Interfaces

Interface

Description

EncodeOptions

The options for encoding the external bundle.

ExternalBundleLibConfig

Rslib config shape accepted by defineExternalBundleRslibConfig.

ExternalBundleWebpackPluginOptions

The options for ExternalBundleWebpackPlugin.

ExternalsPresetDefinition

Definition for a named externals preset.

MainThreadRuntimeWrapperWebpackPluginOptions

The options of MainThreadRuntimeWrapperWebpackPlugin.

Variables

Variable

Description

builtInExternalsPresetDefinitions

Built-in externals preset definitions.

defaultExternalBundleLibConfig

The default lib config for external bundle.

reactLynxExternalsPreset

Standard ReactLynx external mappings used by the built-in reactlynx preset.

Type Aliases

Type Alias

Description

Externals

External module to global-name mappings used when building Lynx external bundles.

ExternalsPresetDefinitions

Available externals preset definitions.

ExternalsPresets

Enabled externals presets.

Preset names are resolved from the built-in preset definitions plus any custom definitions passed to defineExternalBundleRslibConfig().

OutputConfig

Output config accepted by Lynx external bundle builds.