mattdesl / gifenc

fast GIF encoding
MIT License
277 stars 19 forks source link

Builded version doesn't have "opts" default parameter in quantize function #7

Closed roquef closed 3 years ago

roquef commented 3 years ago

When using the builded version the function quantize(rgba, maxColors, opts = {}) doesn't have a default parameter for "opts", if you call quantize() without options it breaks the execution:

Cannot read property 'useSqrt' of undefined (opts is undefined, no default parameter)

If i build it manually it doesn't happen, tested with unpkg and repo master dist folder versions.

https://github.com/mattdesl/gifenc/blob/a5a5df24234a47693f499ce375b4b8a1676132a8/dist/gifenc.js#L359

mattdesl commented 3 years ago

Thanks! Fixed in 1.0.3.