This is the dev preview website. Check out the document at lynxjs.org

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

EncodeOptions.target property

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.

Signature:

target?: 'web' | 'tasm';

Default Value

'tasm'