pdf-extraction and webpack / electron

I use pdf-extraction in my module, it works as expected.

But when I simply import my module from electron.js, I see

GET file:///home/michael/c/diglossa/app/pdf.worker.worker.js net::ERR_FILE_NOT_FOUND

Why? What is a correct way to disable this GET? There is no workers in my code - and once more - it does not require any workers when in node.

Assignee Loading
Time tracking Loading