@lynx-js/react-webpack-plugin@0.12.0
Minor Changes
- BREAKING CHANGE: Remove the unused
jsxoption fromReactLoaderOptions.pluginReactLynxdropped itsjsxoption in #903, and the loader never read this one. (#3979)
Patch Changes
-
Fix
RangeError: Maximum call stack size exceededwhen lazy chunks import each other. (#3930) -
Add
registerRuntimeVersion()andgetRuntimeVersion()to record the host's@lynx-js/reactruntime version and report versions from standalone lazy bundles. The build stamps each bundle with__RUNTIME_VERSION__; bundles built by older plugins that do not stamp the version are unaffected. (#4035) -
Keep both layers of a lazy bundle that a
webpackChunkNamenames. The name is the identity of a chunk group, so writing one collapsed the main-thread and the background compilation into a single chunk: the bundle shipped with an emptylepusCode, and its intermediate outputs landed outside of.lynx/lazy-bundle/<name>/. The transform now appends-react__<layer>to a user-written name and the plugin strips it again, the way it did for the names the transform used to inject, so a named lazy bundle is built exactly like an unnamed one. (#4002) -
Optimize single string literal and template literal children of
<text>intotextattributes whenengineVersionis at least 3.1, avoiding separate raw text nodes while preserving expression values and updates. (#3984)