jimp-dev / gifwrap

A Jimp-compatible library for working with GIFs
MIT License
73 stars 17 forks source link

better resolve circular dependency #29

Closed huayang-codaio closed 3 years ago

huayang-codaio commented 3 years ago

For context, I am trying to use gifwrap (via jimp) in a V8 environment where some node/browser components are not available by default. process.nextTick is one of those that have a different behavior from the nodejs environment.

This PR uses a dynamic require to avoid circular dependency but removes the dependency on process.nextTick. I have tested in a few calls.

huayang-codaio commented 3 years ago

nvm. dead repo. dup pr.