output.iife: true
). (#972)feat: add experimental_isLazyBundle
option, it will disable snapshot HMR for standalone lazy bundle (#653)
Add the profile
option to control whether __PROFILE__
is enabled. (#722)
Support @lynx-js/react
v0.108.0. (#649)
feat: fully support MTS (#569)
Now use support the following usage
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)
@lynx-js/react
v0.106.0. (#239)Shake useImperativeHandle
on the main-thread by default. (#153)
Avoid wrapping standalone lazy bundles with var globDynamicComponentEntry
. (#177)
Support NPM provenance. (#30)
Updated dependencies [c617453
]:
@lynx-js/react
v0.105.0compilation.updateAsset
.@lynx-js/react
v0.104.0compat
in transform to false
@lynx-js/template-webpack-plugin
v0.6.0.__MAIN_THREAD__
and __BACKGROUND__
macro as an alternative to __LEPUS__
and __JS__
.module
is not defined when using lazy bundle.lynxProcessEvalResult
.e8039f2: Add defineDCE
in plugin options. Often used to define custom macros.
Different from define
provided by bundlers like webpack, defineDCE
works at transform time and a extra DCE (Dead Code Elimination) pass will be performed.
For example, import
initialized by dead code will be removed:
will be transformed to:
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/react
v0.103.0.
5f8d492: Deprecate compat.simplifyCtorLikeReactLynx2
@lynx-js/react
v0.102.0options.shake
to allow custom package names to be shaken.6730c58: Support @lynx-js/react
v0.101.0
63f40cc: Inject globDynamicComponentEntry
for all main thread script.
Before | After | |
---|---|---|
Main Bundle | Not defined | Defined(local) |
Lazy Bundle | Defined(params) | Defined(local) |
@lynx-js/react
v0.100.0transformPath
to loader option@lynx-js/react
optional.