You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't know if this is the right place to post this, but here is my problem:
I am using vite-imagetools with sveltekit. I also use pdf-lib to generate PDFs inside a Web Worker. To get image URLs for embedding, I import the images like so:
I don't know if this is the right place to post this, but here is my problem:
I am using
vite-imagetools
with sveltekit. I also usepdf-lib
to generate PDFs inside a Web Worker. To get image URLs for embedding, I import the images like so:After building the project, this results in the following lines in the output:
This obviously fails, as Web Workers have no
document
:Apart from putting these files in my
static
directory and essentially bypassing imagetools entirely, what can I do?The text was updated successfully, but these errors were encountered: