Pages from /design-html no longer crash on their first Pretext call (#4860)

Pages `/design-html` builds from the bundled Pretext copy now run
instead of throwing `prepareWithSegments is not defined` on their first
text-layout call.

The skill pasted the bundle into the page's own module script, where its
renamed exports never define those names; it now ships a small scaffold
that loads the bundle as its own module, still with no network requests.

Nothing to do: the next `/design-html` run uses the new recipe. Found
and diagnosed by @Akkyman2 in #4855.

Co-authored-by: Akkyman2 <178076175+Akkyman2@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This commit is contained in:
authored and GitHub committed 2026-11-27 16:54:24 +00:00
1 parent e05aff972d
commit 9befb56288
9 files changed
+181 -12

No files matched your search

+4
View File
@@ -64,3 +64,7 @@ lib/diagram-render/dist/*.json text eol=lf
# Byte-for-byte golden CSS for make-pdf --style plain; CRLF on a Windows
# checkout would break the exact comparison.
make-pdf/test/fixtures/print-css-plain/*.css text eol=lf
# /design-html splices the vendored Pretext bundle in at the scaffold's PRETEXT_BUNDLE
# line with awk, which would not match a CRLF line on a Windows checkout.
design-html/vendor/pretext-embed.html text eol=lf