feat(library): backup to and restore from a zip file (#3571)

This commit is contained in:
Huang Xin
2026-03-21 01:27:52 +08:00
committed by GitHub
parent e8f70b896e
commit 91bc4ddec7
51 changed files with 1580 additions and 138 deletions
+8 -2
View File
@@ -1,4 +1,10 @@
export const configureZip = async () => {
import { Configuration } from '@zip.js/zip.js';
export const configureZip = async (configuration?: Partial<Configuration>) => {
const { configure } = await import('@zip.js/zip.js');
configure({ useWebWorkers: false, useCompressionStream: false });
configure({
useWebWorkers: false,
useCompressionStream: false,
...(configuration ? configuration : {}),
});
};