jnordberg / gif.js

JavaScript GIF encoding library
http://jnordberg.github.io/gif.js/
MIT License
4.74k stars 667 forks source link

Heatflask #119

Closed ebrensi closed 4 years ago

ebrensi commented 4 years ago

This merge introduces a few changes to bring gif.js up-to-date for npm install and bundling. No runtime functionality is affected.

(1) updates gif.coffee to work with CoffeeScript 2. From https://coffeescript.org/#breaking-changes-classes :

super and this In the constructor of a derived class (a class that extends another class), this cannot be used before calling super

(2) updates the deprecated npm script name "prepublish" for building dist files.

(3) hard-codes the worker script name gif.worker.coffee to avoid problems with bundler name resolution.

(4) updates the files in dist (ran build script)