Web workers used in lazy loaded modules are included in initial bundle causing the initial bundle size to increase. #21059
Labels
area: @angular-devkit/build-angular
devkit/build-angular:browser
freq1: low
Only reported by a handful of users who observe it rarely
severity3: broken
type: bug/fix
Milestone
Bug Report
Affected Package
The issue is caused by package @angular/cli (may be) ?
Is this a regression?
Not sure
Description
Minimal Reproduction
Please see the zip attached. It is very minimal and fully scaffolded with angular cli and I barely touched it (touched it to wire web worker)
getting
ZIP 💼: app.zip
For a quick look to see how the web-worker is integrated to lazy module:
Exception or Error
There are no errors. But if my app have 50 web workers, all of them are shipping in the initial bundle.
Your Environment
Angular Version:
Anything else relevant? Nope :)
(btw, Angular is so nice and comprehensive! Keep up your good work!)
The text was updated successfully, but these errors were encountered: