bokuweb/zstd-wasm

Don't use `readFileSync` to read wasm file

Closed this issue · 2 comments

Right now on node the library uses readFileSync to read the wasm file, this blocks the entire process while the wasm file is being read. Please use fs/promises::readFile instead which returns a promise. This change can be made (let me know if you want a PR) without any API change.

@libre-man Thanks. I see, could you please create PR?

I've created the PR @bokuweb! Let me know if you need anything else!