webworkify library used
FarSeeing opened this issue · comments
Mikhail Sidorov commented
Hey there.
There's an issue with webworkify
library used when bundling with webpack: since now webpack uses arrow functions for modules (honestly, don't know when that happened) and the library uses arguments
you will have an error.
I understand that's not a problem with pica
but since webworkify
was last updated on 2017 and doesn't seem to be in development anymore - maybe it's worth replacing it with something else?
Thanks.
Vitaly Puzrin commented
- There are still no good replacement for webworkify.
- https://github.com/nodeca/pica/blob/master/package.json#L12. You probably do something wrong, because pica uses prebuild & transpiled files.
- Some known issues may be related to terser options https://github.com/nodeca/image-blob-reduce#known-issues, just disable those.