forked from external-repos/squoosh
Disable Worker termination on dev
This helps inspect the source code without it disappearing right from under your nose in 10 seconds.
This commit is contained in:
@@ -58,9 +58,11 @@ for (const methodName of methodNames) {
|
||||
signal.removeEventListener('abort', onAbort);
|
||||
|
||||
// Start a timer to clear up the worker.
|
||||
this._workerTimeout = setTimeout(() => {
|
||||
this._terminateWorker();
|
||||
}, workerTimeout);
|
||||
if (__PRODUCTION__) {
|
||||
this._workerTimeout = setTimeout(() => {
|
||||
this._terminateWorker();
|
||||
}, workerTimeout);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user