alexcorvi/heic2any

Uncaught SyntaxError: Invalid or unexpected token

Opened this issue · 1 comments

When including this package in my vue3 app, I get the following error:
Uncaught SyntaxError: Invalid or unexpected token (at

Which points to this line: https://github.com/alexcorvi/heic2any/blob/3428539e643e112323a5b8a2c77c6402cb1372f6/dist/heic2any.js#L21

The workerString is too big, but here is the specific spot it is failing on:
isWindows:!(bA=\"data:application/octet-stream;base6

I think this workerString should be a dependency. Where is it's sourcecode? This one single line is 1.3MB in size...

BTW, because this line is so long it crashes nearly everything I try to open the file in. I'm wondering why it was done this way.

See visual studio code:
Screenshot 2023-11-15 at 4 52 39 AM