IssueRaiser

Support web workers in libraries

<!--πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”… Oh hi there! πŸ˜„ To expedite issue processing please search open and closed issues before submitting a new one. Existing issues often contain information about workarounds, resolution, or progress updates. πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…--> # πŸš€ Feature request ### Command (mark with an `x`) <!-- Can you pin-point the command or commands that are relevant for this feature request? --> <!-- ✍️edit: --> ``` - [ ] new - [ ] build - [ ] serve - [ ] test - [ ] e2e - [x] generate - [ ] add - [ ] update - [ ] lint - [ ] xi18n - [ ] run - [ ] config - [ ] help - [ ] version - [ ] doc ``` ### Description <!-- ✍️--> I would like to use Web Workers in an Angular 8 library project. In version 8.1.1 this seems to be supported for project type 'application' only: ```console ng generate webWorker my-module/myWorker --project my-lib Web Worker requires a project type of "application". ``` ### Describe the solution you'd like <!-- ✍️--> Generating a Web Worker should work for project type 'library' as well. ### Describe alternatives you've considered <!-- ✍️--> Rewrite TypeScript worker code to JavaScript file.

Posted by klausj on Jul 12, 2019, 11:38 AM

Tags

Related issues

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

support (Other)

Support web workers in libraries

klausjJul 12, 2019, 11:38 AM

<!--πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”… Oh hi there! πŸ˜„ To expedite issue processing please search open and closed issues before submitting a new one. Existing issues often contain information about workarounds, resolution, or progress updates. πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…πŸ”…--> # πŸš€ Feature request ### Command (mark with an `x`) <!-- Can you pin-point the command or commands that are relevant for this feature request? --> <!-- ✍️edit: --> ``` - [ ] new - [ ] build - [ ] serve - [ ] test - [ ] e2e - [x] generate - [ ] add - [ ] update - [ ] lint - [ ] xi18n - [ ] run - [ ] config - [ ] help - [ ] version - [ ] doc ``` ### Description <!-- ✍️--> I would like to use Web Workers in an Angular 8 library project. In version 8.1.1 this seems to be supported for project type 'application' only: ```console ng generate webWorker my-module/myWorker --project my-lib Web Worker requires a project type of "application". ``` ### Describe the solution you'd like <!-- ✍️--> Generating a Web Worker should work for project type 'library' as well. ### Describe alternatives you've considered <!-- ✍️--> Rewrite TypeScript worker code to JavaScript file.

Comments (0)

No comments yet. Start the discussion.

Comment on this issue