Hey how I can embed web workers inside a npm package. The problem Im facing is when I import my npm package for a demo it is trying to dowload the web worker from the public path of the dev server which does not exists
Parcel will automatically parse new Worker("./myworker.js") calls, both inside and outside of node_modules.
Please provide a concrete code example if you need more help.
This is the place in my npm library I'm using worker and it gets bundled in the dist

but when I use it in another parcel project by installing my library(with worker) it says it cannot find __worker.js__ in my new project

Same
Most helpful comment
This is the place in my npm library I'm using worker and it gets bundled in the dist
but when I use it in another parcel project by installing my library(with worker) it says it cannot find __worker.js__ in my new project
