@lynx-js/react-webpack-plugin
0.9.0
Minor Changes
-
Add
removeCallfor shake function calls. Its initial default value matches the hooks that were previously inremoveCallParams, andremoveCallParamsnow defaults to empty. (#2423)removeCallremoves matched runtime hook calls entirely, replacing them withundefinedin expression positions and dropping them in statement positions.removeCallParamskeeps the existing behavior of preserving the call while stripping its arguments.
0.8.0
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)
0.7.4
Patch Changes
- Remove element api calls alog by default, and only enable it when
__ALOG_ELEMENT_API__is defined totrueor environment variableREACT_ALOG_ELEMENT_APIis set totrue. (#2192)
0.7.3
Patch Changes
- Support
@lynx-js/template-webpack-pluginv0.10.0. (#1992)
0.7.2
Patch Changes
-
Pass sourcemap generated by rspack to swc transformer. (#1910)
-
When engineVersion is greater than or equal to 3.1, use
__SetAttributeto set text attribute for text node instead of creating a raw text node. (#1880)
0.7.1
Patch Changes
- Supports
@lynx-js/template-webpack-plugin0.9.0. (#1705)
0.7.0
Minor Changes
-
Remove
@lynx-js/reactfrom peerDependencies. (#1711) -
Add a new required option
workletRuntimePath. (#1711)
0.6.20
Patch Changes
- Updated dependencies [
aaca8f9]:- @lynx-js/webpack-runtime-globals@0.0.6
0.6.19
Patch Changes
0.6.18
Patch Changes
- Be compat with
@lynx-js/reactv0.111.0 (#204)
0.6.17
Patch Changes
-
Enable fine-grained control for
output.inlineScripts(#883)
0.6.16
Patch Changes
-
Supports
@lynx-js/template-webpack-plugin0.8.0. (#1033) -
Support
@lynx-js/reactv0.110.0. (#770) -
Keep snapshot id unchanged on Windows. (#1050)
-
Fix lazy bundle name on Windows. (#1060)
0.6.15
Patch Changes
- Fix lazy bundle build failed on Rspeedy v0.9.8 (with
output.iife: true). (#972)
0.6.14
Patch Changes
0.6.13
Patch Changes
-
feat: add
experimental_isLazyBundleoption, it will disable snapshot HMR for standalone lazy bundle (#653) -
Add the
profileoption to control whether__PROFILE__is enabled. (#722) -
Support
@lynx-js/reactv0.108.0. (#649)
0.6.12
Patch Changes
- Support @lynx-js/react v0.107.0 (#438)
0.6.11
Patch Changes
-
feat: fully support MTS (#569)
Now use support the following usage
- mainthread event
- mainthread ref
- runOnMainThread/runOnBackground
- ref.current.xx
0.6.10
Patch Changes
-
feat: add extractStr option to pluginReactLynx (#391)
-
Fix issue with lazy loading of bundles when source maps are enabled. (#380)
-
Fix issue where loading a lazy bundle fails if it does not return a webpack chunk. (#365)
0.6.9
Patch Changes
- Support
@lynx-js/reactv0.106.0. (#239)
0.6.8
Patch Changes
-
Shake
useImperativeHandleon the main-thread by default. (#153) -
Avoid wrapping standalone lazy bundles with
var globDynamicComponentEntry. (#177)
0.6.7
Patch Changes
-
Support NPM provenance. (#30)
-
Updated dependencies [
c617453]:- @lynx-js/webpack-runtime-globals@0.0.5
0.6.6
Patch Changes
- 1abf8f0: Be compat with
@lynx-js/reactv0.105.0 - 1abf8f0: Improve compilation performance by avoid using
compilation.updateAsset.
0.6.5
Patch Changes
- 94419fb: Support
@lynx-js/reactv0.104.0 - 1bf9271: fix(react): default
compatin transform tofalse
0.6.4
Patch Changes
- 0d3b44c: Support
@lynx-js/template-webpack-pluginv0.6.0. - 74e0ea3: Supports new
__MAIN_THREAD__and__BACKGROUND__macro as an alternative to__LEPUS__and__JS__.
0.6.3
Patch Changes
- 65ecd41: Fix
moduleis not defined when using lazy bundle.
0.6.2
Patch Changes
- 3bf5830: Add
lynxProcessEvalResult. - Updated dependencies [3bf5830]
- @lynx-js/webpack-runtime-globals@0.0.4
0.6.1
Patch Changes
-
e8039f2: Add
defineDCEin plugin options. Often used to define custom macros.Different from
defineprovided by bundlers like webpack,defineDCEworks at transform time and a extra DCE (Dead Code Elimination) pass will be performed.For example,
importinitialized by dead code will be removed:will be transformed to:
0.6.0
Minor Changes
-
a30c83d: Add
compat.removeComponentAttrRegex.NOTE: This feature is deprecated and will be removed in the future. Use codemod instead.
-
5f8d492: BREAKING CHANGE: Require
@lynx-js/reactv0.103.0. -
5f8d492: Deprecate
compat.simplifyCtorLikeReactLynx2
0.5.2
Patch Changes
- e3be842: Support
@lynx-js/reactv0.102.0 - 21dba89: Add
options.shaketo allow custom package names to be shaken.
0.5.1
Patch Changes
-
6730c58: Support
@lynx-js/reactv0.101.0 -
63f40cc: Inject
globDynamicComponentEntryfor all main thread script.
0.5.0
Minor Changes
- 587a782: BRAKING CHANGE: Require
@lynx-js/reactv0.100.0
Patch Changes
- 1938bb1: Add
transformPathto loader option - 1938bb1: Make peerDependencies of
@lynx-js/reactoptional.

