Skip to content

Commit b001cba

Browse files
authored
Deploy February 25, 2026 (#5860)
Changes: [Nazım Can Altınova] Fix JSZip dynamic import for esbuild (#5858)
2 parents e68c05e + 144efe4 commit b001cba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/actions/receive-profile.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1178,7 +1178,7 @@ async function _extractZipFromResponse(
11781178
// that comes from this realm.
11791179
const typedBuffer = new Uint8Array(buffer);
11801180
try {
1181-
const JSZip = await import('jszip');
1181+
const { default: JSZip } = await import('jszip');
11821182
const zip = await JSZip.loadAsync(typedBuffer);
11831183
// Catch the error if unable to load the zip.
11841184
return zip;
@@ -1369,7 +1369,7 @@ export function retrieveProfileFromFile(
13691369
if (_deduceContentType(file.name, file.type) === 'application/zip') {
13701370
// Open a zip file in the zip file viewer
13711371
const buffer = await fileReader(file).asArrayBuffer();
1372-
const JSZip = await import('jszip');
1372+
const { default: JSZip } = await import('jszip');
13731373
const zip = await JSZip.loadAsync(buffer);
13741374
await dispatch(receiveZipFile(zip));
13751375
} else {

0 commit comments

Comments
 (0)