Skip to content

Commit c1afdd9

Browse files
authored
fix: use gzip compression for the tarball generation (#6618)
1 parent 8ed5714 commit c1afdd9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/edge-bundler/node/formats/tarball.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { listRecursively } from '../utils/fs.js'
1313
import { ImportMap } from '../import_map.js'
1414
import { getFileHash } from '../utils/sha256.js'
1515

16-
const TARBALL_EXTENSION = '.tar'
16+
const TARBALL_EXTENSION = '.tar.gz'
1717

1818
interface Manifest {
1919
functions: Record<string, string>
@@ -111,6 +111,7 @@ export const bundle = async ({
111111
{
112112
cwd: bundleDir.path,
113113
file: tarballPath,
114+
gzip: true,
114115
noDirRecurse: true,
115116
onWriteEntry(entry) {
116117
const relativePath = path.relative(bundleDir.path, path.join('/', entry.path))

0 commit comments

Comments
 (0)