For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt, and this page is available as Markdown at /next/api/packages/lynx-bundle-rslib-config/type-aliases/OutputConfig.md.
Lynx
  • English
  • Type Alias: OutputConfig

    OutputConfig = Required<LibConfig>["output"] & object

    Output config accepted by Lynx external bundle builds.

    Type Declaration

    externals?

    optional externals?: Externals

    externalsPresetDefinitions?

    optional externalsPresetDefinitions?: ExternalsPresetDefinitions

    Definitions for custom externals presets enabled by externalsPresets.

    Use this to add business-specific presets such as @lynx-js/lynx-ui, or to extend a built-in preset through extends.

    externalsPresets?

    optional externalsPresets?: ExternalsPresets

    Presets for external libraries.

    Same as https://rspack.rs/config/externals#externalspresets but for Lynx.

    globalObject?

    optional globalObject?: "lynx" | "globalThis"

    This option indicates what global object will be used to mount the library.

    In Lynx, the library will be mounted to lynx[Symbol.for("__LYNX_EXTERNAL_GLOBAL__")] by default.

    If you have enabled share js context and want to reuse the library by mounting to the global object, you can set this option to 'globalThis'.

    Default Value

    'lynx'

    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.