github lynx-family/lynx-stack @lynx-js/lynx-bundle-rslib-config@0.8.0

Minor Changes

  • Assemble an external bundle with LynxTemplatePlugin, so plugins can tap the template hooks. Custom sections are named after their chunks, the intermediate files move into .lynx, and ExternalBundleWebpackPlugin is removed. (#3726)

    target: 'tasm' is renamed to 'lynx'. The environment is now named after target, and id only names the emitted bundle.

  • The minify options come from pluginLynx now; output.minify only decides whether to minify at all. pluginLynx applies them per environment, so output.minify: true on an environment no longer drops them (part of #3723). (#3731)

Patch Changes

  • Route the raw per-thread chunks and debug intermediates of an external bundle into .lynx/<id>/, the way a page build's are routed into .lynx/<entry>/, instead of the flat [name].js default. A development build (or DEBUG set) used to leave them next to the bundle at the root of dist. (#3769)

  • Skip the background runtime wrapper on any asset marked lynx:main-thread instead of matching filenames, and mark the main-thread assets of an external bundle by the layer of their modules, so a main-thread entry an external bundle names itself is no longer wrapped. (#3751)

  • pluginReactLynx registers the encoders and the background runtime wrapper for every caller, and WebEncodePlugin routes the custom sections of a bundle without a root into the slots the web runtime reads. @lynx-js/lynx-bundle-rslib-config only sets the template plugin and the main-thread wrapper up now. (#3744)

Don't miss a new lynx-stack release

NewReleases is sending notifications on new releases.