Minor Changes
- Simplify hooks for main-thread runtime, which only can run during the first screen. (#2441)
Patch Changes
-
fix(rstest): add global fallback aliases for
@lynx-js/react/jsx-runtimeand@lynx-js/react/jsx-dev-runtime(#2464)pluginReactAliasonly aliased these entries inside layer-specific rules (issuerLayer: BACKGROUND/MAIN_THREAD). In rstest mode there are no layers, so JSX transformed by the testing loader—which emitsimport { jsx } from '@lynx-js/react/jsx-runtime'—could not be resolved, causing aCannot find module '@lynx-js/react/jsx-runtime'error. Added global (non-layer-specific) fallback aliases pointing to the background jsx-runtime.