fix(webpack): using multiple workers in a single file

This commit is contained in:
Ian MacDonald
2021-09-29 13:22:21 -04:00
committed by GitHub
parent 1de5295ad9
commit 1ceea571e4

View File

@ -46,7 +46,7 @@ WorkerDependency.Template.prototype.apply = function apply(
); );
}; };
const NEW_WORKER_WITH_STRING_RE = /new\s+Worker\((['"`].+['"`])\)/; const NEW_WORKER_WITH_STRING_RE = /new\s+Worker\((['"`].+['"`])\)/g;
/** /**
* Replaces * Replaces