mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-11-19 06:23:32 +00:00
* perf: keep the mermaid chunk off the boot path The chunk groups capture each module's dependencies with it, and mermaid depends on Vite's dynamic-import preload helper, the Buffer and process shims, DOMPurify, uuid and dayjs. Those landed in the 3 MB mermaid chunk, and because the boot chunks import them, every page preloaded and evaluated mermaid before its first API request, on the path to the largest contentful paint. Two higher-priority groups claim them first (runtime-shims and shared-libs), so mermaid loads only through useMermaid's dynamic import. A new mock scenario checks that a chat without diagrams never fetches the chunk and that a diagram reply still loads and renders it. * test: wait on the reply and the composer instead of network idle The app keeps connections open, so network idle never arrives. |
||
|---|---|---|
| .. | ||
| public | ||
| src | ||
| sw | ||
| test | ||
| babel.config.cjs | ||
| check_updates.sh | ||
| index.html | ||
| jest.config.cjs | ||
| jest.resolver.cjs | ||
| nginx.conf | ||
| package.json | ||
| postcss.config.cjs | ||
| tailwind.config.cjs | ||
| tsconfig.json | ||
| vite.config.ts | ||