developit / workerize-loader

🏗️ Automatically move a module into a Web Worker (Webpack loader)

Home Page:https://npm.im/workerize-loader

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Duplicate workers with inline and Webpack 5

christjt opened this issue · comments

Hey,

When using webpack 5 and the inline option (in the config). It seems like the worker is inlined and a separate [some hash].worker.js is produced. Simply deleting this worker.js file works fine (since the actual worker that is used is inlined). Just annoying to have to delete it every time i want to publish. Is there any known workaround for this?