Rspeedy logo
Rspeedy

Home > @lynx-js/external-bundle-rsbuild-plugin > ReactLynxExternalsPresetOptions

ReactLynxExternalsPresetOptions interface

Options for the built-in reactlynx externals preset.

Signature:

export interface ReactLynxExternalsPresetOptions 

Properties

Property

Modifiers

Type

Description

bundlePath?

string

(Optional) Emit the ReactLynx runtime bundle into the current build output and load it through the generated runtime public path.

Prefer this over url for normal Rspeedy projects. In addition to letting the runtime resolve the final URL from publicPath, the plugin will also copy the corresponding @lynx-js/react-umd bundle into the emitted assets, so application bundles can reference it without requiring an extra manual copy step when publishing.

reactUmdPackageName?

string

(Optional) Package name that provides the ReactLynx runtime bundle.

Override this when wrapping the plugin for another distribution, such as @byted-lynx/react-umd.

url?

string

(Optional) Override the runtime bundle URL directly.

Use this only when the ReactLynx runtime is hosted outside the current build output, for example on a CDN. Unlike bundlePath, this does not emit any extra asset into the current compilation.

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