Adding web worker via "ng generate webWorker" does not generate differential builds #16275
Closed
2 of 15 tasks
Labels
area: @angular-devkit/build-angular
freq1: low
Only reported by a handful of users who observe it rarely
severity5: regression
type: bug/fix
Milestone
🐞 Bug report
Command (mark with an
x
)Is this a regression?
Unsure, I've only just encountered a scenario that would reveal this bug.
Description
Differential builds are not generated for web workers, only es2015.
🔬 Minimal Reproduction
ng new NgWorkerDiffTest --routing=false --style=scss & cd NgWorkerDiffTest & ng generate webWorker MyWorker
Modify
app.component.ts
to include:ng build
orng build --prod
- neither will produce anything but es2015 for the worker.🌍 Your Environment
Anything else relevant?
In a way - IE11 will fail to load workers due to syntax errors.
The text was updated successfully, but these errors were encountered: