From 2b8105598e03a58e28e9b67637b7e4782d919968 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sat, 25 Apr 2026 12:48:01 +0100 Subject: [PATCH] perf: lazy load support bundle zip --- src/logging/diagnostic-support-bundle.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/logging/diagnostic-support-bundle.ts b/src/logging/diagnostic-support-bundle.ts index b7aac1f3dc6..3af4451b44a 100644 --- a/src/logging/diagnostic-support-bundle.ts +++ b/src/logging/diagnostic-support-bundle.ts @@ -1,6 +1,5 @@ import fs from "node:fs"; import path from "node:path"; -import JSZip from "jszip"; export type DiagnosticSupportBundleFile = { path: string; @@ -132,6 +131,7 @@ export async function writeSupportBundleZip(params: { files: readonly DiagnosticSupportBundleFile[]; compressionLevel?: number; }): Promise { + const { default: JSZip } = await import("jszip"); const zip = new JSZip(); for (const file of params.files) { zip.file(assertSafeBundleRelativePath(file.path), file.content);