Minor Changes
-
Add a
webencode target todefineExternalBundleRslibConfig(encodeOptions.target: 'web'). (#2846)When set, the external bundle is emitted as a web binary bundle (
<name>.web.bundle, encoded via@lynx-js/web-core/encode) that the Lynx web platform can decode and load withlynx.fetchBundle/lynx.loadScript. For the web target, each section is routed to the bundle slot whose chunk format it matches — the main-thread chunk intolepusCode, other JS chunks intomanifest, and CSS intoStyleInfo— emitting JS as raw source (the web runtime wraps it at load). The defaulttarget: 'tasm'(the native bundle via@lynx-js/tasm) is unchanged.