We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65453ba commit 3240ee1Copy full SHA for 3240ee1
src/index.js
@@ -51,8 +51,13 @@ loader.pitch = function(request) {
51
namedChunkFilename: null
52
};
53
54
+ const compilerOptions = this._compiler.options || {};
55
+ if (compilerOptions.output && compilerOptions.output.globalObject==='window') {
56
+ console.warn('Warning (workerize-loader): output.globalObject is set to "window". It should be set to "self" or "this" to support HMR in Workers.');
57
+ }
58
+
59
worker.compiler = this._compilation.createChildCompiler('worker', worker.options);
-
60
61
(new WebWorkerTemplatePlugin(worker.options)).apply(worker.compiler);
62
63
if (this.target!=='webworker' && this.target!=='web') {
0 commit comments