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.
除非另有说明,本项目采用知识共享署名 4.0 国际许可协议进行许可,代码示例采用 Apache License 2.0 许可协议进行许可。