Skip to content

Commit 1ceea57

Browse files
authored
fix(webpack): using multiple workers in a single file
1 parent 1de5295 commit 1ceea57

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/webpack5/src/loaders/nativescript-worker-loader

‎packages/webpack5/src/loaders/nativescript-worker-loader/index.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ WorkerDependency.Template.prototype.apply = function apply(
4646
);
4747
};
4848

49-
const NEW_WORKER_WITH_STRING_RE = /new\s+Worker\((['"`].+['"`])\)/;
49+
const NEW_WORKER_WITH_STRING_RE = /new\s+Worker\((['"`].+['"`])\)/g;
5050

5151
/**
5252
* Replaces

0 commit comments

Comments
 (0)