WebWorker support?
- Dominant language
- Go
- Stars
- 40.1k
- Forks
- 1.3k
- PR merge metrics
- No merged PRs in 30d
Description
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?
Contributor guide
No contributing guide indexed for this repository
Research direction
No files or tests are named. Start by checking whether esbuild currently recognizes the sample `new Worker('./myWorker.js')` pattern and how it creates bundle entry points. Done means supporting the worker bundle and updating the referenced filename with cache-busting output, with tests covering the behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, javascript
- Domain
- compilers, web-dev
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100