Using Web Workers with Webpack 5
Mar 26, 2021 · 2 min read · Webpack 5 came with native support for Web Workers and made it pretty easy to use them in your application. To instantiate a worker you have to call its constructor and use the URL-constructor to specify its file path: const worker = new Worker(new U...
RRon commented