Commit 487a8e7
committed
Fix visual parity Lit harness broken after merge
The Lit harness stopped rendering after the merge because:
1. @a2ui/markdown-it was pinned to ^0.0.1 (npm registry) which has a
synchronous renderMarkdown(). After commit b904548 made
MarkdownRenderer async, the Lit directive calls .then() on the
result, causing "markdownRenderer(...).then is not a function".
Fix: switch to file:../../markdown/markdown-it to stay in sync with
the local source (now async, v0.0.2).
2. The React Vite dev server lazily discovers @a2ui/web_core subpath
imports, triggering "optimized dependencies changed. reloading"
mid-page-load which causes blank screenshots in Playwright.
Fix: add web_core subpath imports to optimizeDeps.include so Vite
pre-bundles them upfront.1 parent fe74e8c commit 487a8e7
3 files changed
Lines changed: 35 additions & 57 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
31 | 37 | | |
32 | 38 | | |
33 | 39 | | |
| |||
0 commit comments