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

ClassDescription
ExternalBundleWebpackPluginWebpack plugin that builds and emits an external bundle.
MainThreadRuntimeWrapperWebpackPluginWebpack plugin that wraps main-thread runtime modules for external bundles.

Functions

FunctionDescription
defineExternalBundleRslibConfig(userLibConfig, encodeOptions)Get the Rslib config for building Lynx external bundles.

Interfaces

InterfaceDescription
EncodeOptionsOptions for encoding the external bundle.
ExternalBundleLibConfigRslib config shape accepted by defineExternalBundleRslibConfig.
ExternalBundleWebpackPluginOptionsOptions for ExternalBundleWebpackPlugin.
ExternalsPresetDefinitionDefinition for a named externals preset.
MainThreadRuntimeWrapperWebpackPluginOptionsOptions for MainThreadRuntimeWrapperWebpackPlugin.

Type Aliases

Type AliasDescription
ExternalsExternal module to global-name mappings used when building Lynx external bundles.
ExternalsPresetDefinitionsAvailable externals preset definitions.
ExternalsPresetsEnabled externals presets.
OutputConfigOutput config accepted by Lynx external bundle builds.

Variables

VariableDescription
builtInExternalsPresetDefinitionsBuilt-in externals preset definitions.
defaultExternalBundleLibConfigThe default lib config for external bundle.
reactLynxExternalsPresetStandard ReactLynx external mappings used by the built-in reactlynx preset.
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.