Leo Driesch
Leo Driesch's Blog

Leo Driesch's Blog

Subscribe to my newsletter and never miss my upcoming articles

Using Web Workers with Webpack 5

Mar 26, 20212 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...