I don't know how it worked for anyone before, it looks like after building Zip.js file Webpack removes ReadableStream from the code and just uses Node.js's require('stream').Readable. And at least in Chrome 87 this resulted in downloading an empty corrupted zip file for me.
You can search in the dist/downzip-sw.js for ReadableStream, you won't find any.
One solution would be to rename the constant to something other than ReadableStream like this:
Thanks for the fix! Pretty sure it somehow worked for me a while back, but the project I'm using this in was put on hold for the time being, so I haven't really tested it in the field much anymore.
I don't know how it worked for anyone before, it looks like after building
Zip.js
file Webpack removesReadableStream
from the code and just uses Node.js'srequire('stream').Readable
. And at least in Chrome 87 this resulted in downloading an empty corrupted zip file for me.You can search in the
dist/downzip-sw.js
forReadableStream
, you won't find any.One solution would be to rename the constant to something other than
ReadableStream
like this:But as I understand this library is for in-browser usage hence we don't need this Node.js-related code
Btw, thanks for the library! Should really help us implementing what we want easily.