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/interfaces/EncodeOptions.md.
Lynx
  • English
  • Interface: EncodeOptions

    The options for encoding the external bundle.

    Properties

    enableJsBytecode?

    optional enableJsBytecode?: boolean

    Whether to compile main thread chunks to JsBytecode in the emitted bundle.

    Remarks

    When disabled, main thread chunks are encoded as plain JavaScript source, which keeps them readable for debugging and speeds up encoding.

    Only takes effect for the 'lynx' target. For the 'web' target the JsBytecode tag only routes main thread chunks to the correct bundle slot (the chunk is never bytecode-compiled), so it is always kept.

    Default Value

    false when NODE_ENV is 'development', otherwise true


    engineVersion?

    optional engineVersion?: string

    The engine version of the external bundle.

    Default Value

    '3.5'

    target?

    optional target?: "web" | "lynx"

    The output format of the encoded bundle.

    • 'lynx': the native bundle a Lynx engine loads, via @lynx-js/tasm.
    • 'web': a web binary bundle via @lynx-js/web-core/encode, decodable by the web platform. Sections are emitted as raw JS (the web runtime wraps them at lynx.loadScript time), and CSS is folded into the StyleInfo section.

    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.