Support for workers and service workers
- Dominant language
- TypeScript
- Stars
- 337
- Forks
- 16
- PR merge metrics
- No merged PRs in 30d
Description
```ts
// Web worker
new Worker("./worker.ts");
// Service worker
navigator.serviceWorker.register("./sw.ts");
```
These types of dependencies may end up being something that comes for free if esbuild adds support for these syntaxes, but I figured I would create an issue to propose this here too for consideration.
evanw/esbuild#312
evanw/esbuild#1602
Edit:
Could maybe even pull in [this plugin](https://github.com/chialab/rna/tree/main/packages/esbuild-plugin-worker) that looks to add support for `new Worker`, and then add a similar plugin for service workers
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the Worker and service-worker entry points shown in the issue: new Worker("./worker.ts") and navigator.serviceWorker.register("./sw.ts"). Review the linked esbuild issues and the referenced worker plugin to determine the intended bundling behavior; done should mean both dependency types are supported.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- deno, typescript
- Domain
- build-system, frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100