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, andExternalBundleWebpackPluginis removed. (#3726)target: 'tasm'is renamed to'lynx'. The environment is now named aftertarget, andidonly names the emitted bundle. -
The minify options come from
pluginLynxnow;output.minifyonly decides whether to minify at all.pluginLynxapplies them per environment, sooutput.minify: trueon 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].jsdefault. Adevelopmentbuild (orDEBUGset) used to leave them next to the bundle at the root ofdist. (#3769) -
Skip the background runtime wrapper on any asset marked
lynx:main-threadinstead 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) -
pluginReactLynxregisters the encoders and the background runtime wrapper for every caller, andWebEncodePluginroutes the custom sections of a bundle without a root into the slots the web runtime reads.@lynx-js/lynx-bundle-rslib-configonly sets the template plugin and the main-thread wrapper up now. (#3744)