You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 19, 2026. It is now read-only.
I see Warning (workerize-loader): output.globalObject is set to "window". It should be set to "self" or "this" to support HMR in Workers when serving, but not when building.
console.warn('Warning (workerize-loader): output.globalObject is set to "window". It should be set to "self" or "this" to support HMR in Workers.');
What's the intended way of addressing this warning? I'd like to keep the globalObject settings of the main compilation unaltered.
As a side-note, the name workerize-loader is misleading. It took me a while to figure out that it came from this package since I was looking for a workerize-loader in node modules.
Heya,
I'm trying to follow up your initial work in angular/angular-cli#12575.
I see
Warning (workerize-loader): output.globalObject is set to "window". It should be set to "self" or "this" to support HMR in Workerswhen serving, but not when building.That warning seems to come from here:
worker-plugin/src/loader.js
Line 33 in cb00d31
What's the intended way of addressing this warning? I'd like to keep the
globalObjectsettings of the main compilation unaltered.As a side-note, the name
workerize-loaderis misleading. It took me a while to figure out that it came from this package since I was looking for aworkerize-loaderin node modules.