Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Add support for SharedWorker in ng-cli

Open
#20,279 5 comments 29 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
angular, typescript
Domain
build-system, cli

Research direction

Start with the existing ng generate web-worker and service-worker entry points and compare how they configure generated projects. Define the shared-worker command's expected setup and documentation, then verify that ng generate shared-worker produces a usable shared worker similarly to the existing commands.

Written by the indexing model from the issue text.

Description

area: @schematics/angular feature feature: insufficient votes

🚀 feature request

Relevant Package

This feature request is for @angular/cli

Description

ng generate can currently handle web-workers and service-workers, but not shared-workers. It would be very helpful if shared workers could be handled similarly.

Right now there's very little documentation about how to setup shared workers with angular, unlike web workers where I can simply call ng generate web-worker and start filling in my code.

Describe the solution you'd like

There should be an ng generate shared-worker command that works similar to the commands for web and service workers.

Describe alternatives you've considered

This medium article and these two Stack Overflow questions both have different solutions to make this work.

Dominant language
TypeScript
Stars
27k
Forks
11.8k
Avg merge
16h 35m
Merged PRs (30d)
176

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from angular/angular-cli

All issues in angular/angular-cli

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.