Patch Changes
-
feat(web): enable web binary template by default (#2545)
The default encoding format for the web platform template has been changed from JSON to Binary.
Benefits for developers:
- Smaller output size: Binary templates are more compact than JSON strings, reducing the final bundle size.
- Faster load performance: Binary templates parse faster than JSON in the runtime, improving the time-to-interactive for web applications.
How to turn off this feature:
If you encounter any issues with the new binary template format, you can revert to the previous JSON format by setting the environment variableEXPERIMENTAL_USE_WEB_BINARY_TEMPLATEto'false'or'0'before running your build commands. For example:
EXPERIMENTAL_USE_WEB_BINARY_TEMPLATE=false rspeedy buildUpgrade to
@lynx-js/web-core@0.20.2could support the new output format -
Run TASM template encoding in a shared
tinypoolworker pool so multi-entry builds encode in parallel and watch-mode rebuilds reuse warm workers. (#2634) -
Make
LynxTemplatePlugin.getLynxTemplatePluginHooksa cross-module singleton so duplicate copies of this package (e.g. from npm hoist conflicts) share the same hooks per compilation. (#2624) -
Update the @lynx-js/tasm dependency to 0.0.39 and align React template attribute descriptors with it. (#2643)
-
Updated dependencies [
ee79eff,ded4de9,cf01e94,b989c1c,8417e68]:- @lynx-js/web-core@0.20.4