---
title: "Discussion on \"Using Web Workers with Webpack 5\" | Hashnode"
description: "Discussion on \"Using Web Workers with Webpack 5\". Webpack 5 came with native support for Web Workers and made it pretty easy to use them in your application.\nTo instantiate a worker you have to call its constructor and use the URL-constructor to specify its file path:\nconst worker = new Worker(new U..."
url: "https://hashnode.com/posts/using-web-workers-with-webpack-5/605d93525b2bf946a9c92024"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Using Web Workers with Webpack 5](https://blog.leodriesch.com/using-web-workers-with-webpack-5?utm_source=hashnode&utm_medium=feed)

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...

Mar 26, 2021 · 2 min read · blog.leodriesch.com  
Read the article

-   [#webpack](https://hashnode.com/tag/webpack)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#javascript](https://hashnode.com/tag/javascript)

## Written by

[Leo Driesch](https://hashnode.com/@leodriesch)

@leodriesch · Ahaus, Germany

  
[View profile](https://hashnode.com/@leodriesch)

Diving deep in React's waters.

## Responses 1

Markdown supported · ⌘↵ to post

[Ron Gootman](https://hashnode.com/@RonGootman)

[Oct 3, 2021](https://hashnode.com/posts/using-web-workers-with-webpack-5/605d93525b2bf946a9c92024/comment/6159ea92e2f1936f70b28583)

Hey Leo! any way you can provide an example of using comlink together with Webpack 5?
