Minor Changes
-
feat: add
globalPropsModeoption toPluginReactLynxOptions(#2346)- When configured to
"event",updateGlobalPropswill only trigger a global event and skip therunWithForceflow. - Defaults to
"reactive", which meansupdateGlobalPropswill trigger re-render automatically.
- When configured to
Patch Changes
-
Fix sourcemap misalignment when wrapping lazy bundle main-thread chunks. (#2361)
The lazy bundle IIFE wrapper is now injected in
processAssetsatPROCESS_ASSETS_STAGE_OPTIMIZE_SIZE + 1by walking chunk groups instead of patching assets inbeforeEncode.- With
experimental_isLazyBundle: true, the wrapper is applied to lazy-bundle chunk groups. - Without lazy bundle mode, the wrapper is applied to async main-thread chunk groups generated by dynamic import.
Injecting the wrapper in this stage keeps the emitted JS stable after optimization while still running before
DEV_TOOLINGsourcemap finalization, so the generated.jsand.js.mapstay aligned. - With
-
Set
__DEV__and__PROFILE__totrueonNODE_ENV === 'development'. (#2324)