WeKnora/website-docs/.vitepress
jack 621bc9b98a
fix(website-docs): prebundle fastdom when mermaid imports it (#4208)
mermaid >= 11.17 dynamically imports the UMD package fastdom. Vite's
dependency scanner misses that import during vitepress dev, so the
browser loads raw fastdom.js and throws "does not provide an export
named 'default'". Pre-bundle fastdom only when this install can resolve
it. The lockfile pins mermaid 11.16.0, which does not depend on
fastdom, and an unconditional optimizeDeps.include makes Vite report
"Failed to resolve dependency".

Fixes #2899

Co-authored-by: Frank-zhu2000 <332350688+Frank-zhu2000@users.noreply.github.com>
2026-10-13 16:47:39 +08:00
..
theme fix(website-docs): serve everything but the homepage from /docs/ 2026-09-24 15:24:16 +08:00
config.mts fix(website-docs): prebundle fastdom when mermaid imports it (#4208) 2026-10-13 16:47:39 +08:00
theme-config.d.ts docs(website): add official site link and inject VERSION at build time 2026-08-06 21:59:01 +08:00
version.ts feat(website): add product homepage and unified docs deployment (#3297) 2026-09-16 11:58:37 +08:00