perf(ui): lazy-load markdown and diff rendering

This commit is contained in:
Pascal André
2026-03-14 09:56:58 +01:00
committed by Shantur Rathore
parent d15340a4b8
commit d0d5c309e6
10 changed files with 316 additions and 227 deletions

View File

@@ -1,7 +1,7 @@
import type { Accessor, JSXElement } from "solid-js"
import type { RenderCache } from "../../types/message"
import { ansiToHtml, createAnsiStreamRenderer, hasAnsi } from "../../lib/ansi"
import { escapeHtml } from "../../lib/markdown"
import { escapeHtml } from "../../lib/text-render-utils"
import type { AnsiRenderOptions, ToolScrollHelpers } from "./types"
type AnsiRenderCache = RenderCache & { hasAnsi: boolean }