alexcorvi / heic2any

Converting HEIF/HEIF image formats to PNG/GIF/JPEG in the browser
https://alexcorvi.github.io/heic2any/
MIT License
585 stars 74 forks source link

Uncaught SyntaxError: Invalid or unexpected token #53

Open KenEucker opened 7 months ago

KenEucker commented 7 months ago

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...

KenEucker commented 7 months ago

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