Skip to content
Discussion options

You must be logged in to vote

The useWebWorkers issue in Node.js is related to the fact that the Worker API is not supported natively. However, you can use a module like web-worker to circumvent this issue.

First, make sure you're using the last version of zip.js (version 2.8.16) that I've just published. Then, you can simply install web-worker from NPM and add the code below in your test file(s) to make the Worker API visible to zip.js. You also might need to set the option maxWorkers to 16 to make sure all the CPU cores are used (not verified).

// ...
// Import `web-worker` module
import Worker from 'web-worker';
// ...

// Make `Worker` global 
globalThis.Worker = Worker;
// Use zip.js...

The level 6 uses the native

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@gildas-lormeau
Comment options

@galdebert
Comment options

@gildas-lormeau
Comment options

@galdebert
Comment options

@gildas-lormeau
Comment options

Answer selected by galdebert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants