这是开发预览网站。请访问正式文档 lynxjs.org

Home > @lynx-js/lynx-bundle-rslib-config > EncodeOptions

EncodeOptions interface

The options for encoding the external bundle.

Signature:

export interface EncodeOptions 

Properties

Property

Modifiers

Type

Description

enableJsBytecode?

boolean

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

engineVersion?

string

(Optional) The engine version of the external bundle.

target?

'web' | 'tasm'

(Optional) The output format of the encoded bundle.

  • 'tasm': the native TASM bundle 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.