github lynx-family/lynx-stack @lynx-js/template-webpack-plugin@0.11.1

latest releases: @lynx-js/rspeedy@0.14.4, @lynx-js/qrcode-rsbuild-plugin@0.4.7, @lynx-js/react-refresh-webpack-plugin@0.3.6...
4 hours ago

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 variable EXPERIMENTAL_USE_WEB_BINARY_TEMPLATE to 'false' or '0' before running your build commands. For example:
    EXPERIMENTAL_USE_WEB_BINARY_TEMPLATE=false rspeedy build

    Upgrade to @lynx-js/web-core@0.20.2 could support the new output format

    See @lynx-js/web-core Changelog

  • Run TASM template encoding in a shared tinypool worker pool so multi-entry builds encode in parallel and watch-mode rebuilds reuse warm workers. (#2634)

  • Make LynxTemplatePlugin.getLynxTemplatePluginHooks a 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

Don't miss a new lynx-stack release

NewReleases is sending notifications on new releases.