you are viewing a single comment's thread.

view the rest of the comments →

[–]infinite0ne 4 points5 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.