For AI agents: the complete documentation index is available at /next/zh/llms.txt, the full documentation bundle is available at /next/zh/llms-full.txt, and this page is available as Markdown at /next/zh/api/rspeedy/external-bundle-rsbuild-plugin.md.
Rspeedy logo
Rspeedy
  • 简体中文
  • Home > @lynx-js/external-bundle-rsbuild-plugin

    external-bundle-rsbuild-plugin package

    Functions

    Function

    Description

    normalizeBundlePath(bundlePath)

    Normalize a public bundle path by removing leading slashes.

    pluginExternalBundle(options)

    Create a rsbuild plugin for loading external bundles.

    This plugin wraps the externals-loading-webpack-plugin and automatically retrieves layer names from the react-rsbuild-plugin via api.useExposed.

    Interfaces

    Interface

    Description

    ExternalsPresetContext

    Context passed to externals preset resolvers.

    ExternalsPresetDefinition

    Definition for a named externals preset.

    ExternalsPresets

    Presets for external bundle dependencies.

    PluginExternalBundleOptions

    Options for the external-bundle-rsbuild-plugin.

    PluginExternalValue

    External bundle reference accepted by pluginExternalBundle.

    ReactLynxExternalsPresetOptions

    Options for the built-in reactlynx externals preset.

    Variables

    Variable

    Description

    builtInExternalsPresetDefinitions

    Built-in externals preset definitions.

    Type Aliases

    Type Alias

    Description

    ExternalsPresetDefinitions

    Available externals preset definitions.

    PluginExternalConfig

    External bundle shorthand accepted by pluginExternalBundle.

    When a string is provided, it is treated as bundlePath and the plugin will infer: - libraryName: the external request key - background.sectionPath: the external request key - mainThread.sectionPath: ${request}__main-thread

    除非另有说明,本项目采用知识共享署名 4.0 国际许可协议进行许可,代码示例采用 Apache License 2.0 许可协议进行许可。