From c57e2f383b72fb487d69d821f0c119cb8ab6b32c Mon Sep 17 00:00:00 2001 From: jake champion Date: Tue, 12 Aug 2025 15:27:27 +0100 Subject: [PATCH] fix: use gzip compression for the tarball generation --- packages/edge-bundler/node/formats/tarball.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/edge-bundler/node/formats/tarball.ts b/packages/edge-bundler/node/formats/tarball.ts index fc3a8bd688..f831a4675b 100644 --- a/packages/edge-bundler/node/formats/tarball.ts +++ b/packages/edge-bundler/node/formats/tarball.ts @@ -13,7 +13,7 @@ import { listRecursively } from '../utils/fs.js' import { ImportMap } from '../import_map.js' import { getFileHash } from '../utils/sha256.js' -const TARBALL_EXTENSION = '.tar' +const TARBALL_EXTENSION = '.tar.gz' interface Manifest { functions: Record @@ -111,6 +111,7 @@ export const bundle = async ({ { cwd: bundleDir.path, file: tarballPath, + gzip: true, noDirRecurse: true, onWriteEntry(entry) { const relativePath = path.relative(bundleDir.path, path.join('/', entry.path))