IssueRaiser

WebWorker support?

Hi I just discovered esbuild, coming from Parcel. One thing I like about parcel is that if I instaniate a WebWorker with the string literal filename, like ```javascript const ww = new Worker ('./myWorker.js') ww.postMessage('work!') ``` Parcel will recognize the `Worker` constructor and create another bundle starting at `./myWorker.js`. It also handles cache busting for the filename. So the bundle would be called `./myWorker8a68r8912q.js` or something and that string would be updated in the code above. Does ESBuild do something like that? If not, where would I look to implement that?

Posted by ebrensi on Aug 3, 2020, 4:11 PM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.3,000 issues0 comments

support (Other)

WebWorker support?

ebrensiAug 3, 2020, 4:11 PM

Hi I just discovered esbuild, coming from Parcel. One thing I like about parcel is that if I instaniate a WebWorker with the string literal filename, like ```javascript const ww = new Worker ('./myWorker.js') ww.postMessage('work!') ``` Parcel will recognize the `Worker` constructor and create another bundle starting at `./myWorker.js`. It also handles cache busting for the filename. So the bundle would be called `./myWorker8a68r8912q.js` or something and that string would be updated in the code above. Does ESBuild do something like that? If not, where would I look to implement that?

Comments (0)

No comments yet. Start the discussion.

Comment on this issue