Minor Changes
-
Support
lynx.fetchBundleandlynx.loadScriptfor async external bundles on the web platform. (#2846)@lynx-js/externals-loading-webpack-plugin(via@lynx-js/external-bundle-rsbuild-plugin) can now load external bundles at runtime on web. Both APIs are available on thelynxobject in the main-thread and background JS realms. An external bundle reuses the card's own chunk machinery rather than custom sections: its main-thread chunk rides theLepusCodesection (loaded in the mts realm vialepusCodeUrls) and its background chunk rides theManifestsection (loaded in the bts worker viaupdateBTSChunk→templateCache), while its pre-processed style section is applied globally through the existing wasm style engine. The background thread now requires@lynx-js/lynx-core>= 0.1.4, whoselynx.loadScriptruns the loaded section's init.Web binary external bundles are produced by
@lynx-js/lynx-bundle-rslib-configwithtarget: 'web'.Only the async usage is supported (
async: true); the synchronouspromise.wait()usage is not available on web.
Patch Changes
-
Implement web performance profiling APIs by bridging ReactLynx
profileStart,profileEnd,profileMark,profileFlowId, andisProfileRecordingto browser User Timing entries. (#2874) -
Updated dependencies []:
- @lynx-js/web-worker-rpc@0.22.0