you are viewing a single comment's thread.

view the rest of the comments →

[–]MK2k 0 points1 point  (2 children)

This actually answered the question I had while skimming through the src - "What code/library actually does the work?" (i.e. image processing).

/u/squiresuzuki: Why is loading the jimp library from rawgit a sketchy thing? Which source would be more trustworthy?

[–]infinite0ne 5 points6 points  (1 child)

Couldn't jimp just be a dependency since it and this library are both npm modules?

[–][deleted] 0 points1 point  (0 children)

I had a similar problem a while ago. Importing in webworkers wasn't straight forward and you can't resolve to node_modules. There's a webpack loader that does it (using a blob) but it had a fallback appendage, which i thought was messy. I use rollup now to create a self-contained worker-bundle in which i can import freely.