mirror of
https://github.com/outline/outline.git
synced 2026-06-13 11:25:03 +03:00
d0ede882c6
* perf: Lazy import mailparser, @fast-csv, and franc deps Moves heavy dependencies off the startup path into the narrow async code paths that actually use them, mirroring the mammoth lazy-import change: - mailparser: only needed for Confluence Word imports (confluenceToHtml) - @fast-csv/parse: only needed for CSV imports (csvToMarkdown) - franc / iso-639-3: only needed by the DocumentUpdateText worker task Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * perf: Lazy import jsdom dep jsdom is one of the heaviest server dependencies but is only needed for HTML export (ProsemirrorHelper.toHTML) and HTML import (DocumentConverter.htmlToProsemirror). Move it to a lazy `await import` inside those methods so its dependency tree stays off the startup path. Both methods become async; all callers were already in async contexts. The type-only usage in patchGlobalEnv is now an `import type`.