Rspeedy logo
Rspeedy

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.
除非另有说明,本项目采用知识共享署名 4.0 国际许可协议进行许可,代码示例采用 Apache License 2.0 许可协议进行许可。