SingleFile CLI 2.6.2
Fixes
-
Self-extracting archives (
--compress-content) produced a page that stayed blank and threwReferenceErrorin the browser console. Archives created with 2.6.0 and 2.6.1 are affected and cannot be opened; re-capture them with this version.The archive's display code is serialized into the page it generates, where module scope does not exist, so a helper it called was undefined at runtime. A minifier had been inlining that helper by chance, which is why the bug only appeared once the build stopped doing so.
Core
Updated to single-file-core 1.5.116, which also brings:
- circular
@importrules no longer loop until the capture times out - shared copies of duplicate stylesheets keep working resource references, so images they reference are no longer missing from the archive
- inline SVG is kept when images are blocked
- canvas elements tainted by a cross-origin resource are reported instead of dropped silently
- font faces already declared with the same sources are no longer embedded twice
var()and multi-word family names are resolved when removing unused fonts- constructed stylesheets of a closed shadow root are no longer lost
Co-authored by Claude (Claude Code)