@lynx-js/cache-events-webpack-plugin@0.2.0
Minor Changes
-
Cache and replay native calls for async-external entries on both threads. (#2928)
An async-external entry renders startup as a plain
__webpack_require__(entry)that the event-caching runtime (keyed onRuntimeGlobals.startup) never hooked, so calls made while the external ReactLynx bundle was still loading were lost. The plugin now requiresstartupfor such async entry chunks: the background thread caches the samett/ performance /globalThisevents as the chunk-split path, and the main thread caches the first-screenrenderPageand replays it once loaded so the page is not left blank.setupListTransformernow receives a second{ isMainThread }argument (it runs once per thread), so custom cache events can be added to a single thread — e.g.(setupList, { isMainThread }) => isMainThread ? setupList : [...setupList, myEvent]. Existing single-argument transformers are unaffected.
Patch Changes
- Updated dependencies [
fec4237]:- @lynx-js/webpack-runtime-globals@0.0.7