Interface: EncodeOptions
The options for encoding the external bundle.
Properties
enableJsBytecode?
optionalenableJsBytecode?: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?
optionalengineVersion?:string
The engine version of the external bundle.
Default Value
target?
optionaltarget?:"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 atlynx.loadScripttime), and CSS is folded into the StyleInfo section.