perf: lazy load support bundle zip · openclaw/openclaw@2b81055
steipete
·
2026-04-25
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | import fs from "node:fs"; |
2 | 2 | import path from "node:path"; |
3 | | -import JSZip from "jszip"; |
4 | 3 | |
5 | 4 | export type DiagnosticSupportBundleFile = { |
6 | 5 | path: string; |
@@ -132,6 +131,7 @@ export async function writeSupportBundleZip(params: {
|
132 | 131 | files: readonly DiagnosticSupportBundleFile[]; |
133 | 132 | compressionLevel?: number; |
134 | 133 | }): Promise<number> { |
| 134 | +const { default: JSZip } = await import("jszip"); |
135 | 135 | const zip = new JSZip(); |
136 | 136 | for (const file of params.files) { |
137 | 137 | zip.file(assertSafeBundleRelativePath(file.path), file.content); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。