Optionaloptions: {OptionalCompressionStreamFallback?: typeof CompressionStreamLikeThe stream implementation used to compress data when useCompressionStream is set to false or when CompressionStream is unsupported.
OptionalDecompressionStreamFallback?: typeof DecompressionStreamLikeThe stream implementation used to decompress data when useCompressionStream is set to false or when DecompressionStream is unsupported.
The function called before resolving the stream implementations, e.g. to load a WebAssembly module.
Initializes a custom web worker script. This function is exposed by the
@zip.js/zip.js/workerentry point and must be called in the worker script created by Configuration#createWorker or referenced by Configuration#workerURI.Here is a complete example of a worker script using fflate as the compression engine, e.g. to reduce the bundle size: