Edge Computing with Cloudflare Workers
Using Webpack to bundle your Workers modules

Using Webpack to bundle your Workers modules

6/25/2018 · John Fawcett

What this post added

This post introduces the use of Webpack to bundle JavaScript modules for Cloudflare Workers. It details how to set up a Webpack configuration with TypeScript, install necessary dependencies, and use npm scripts for building and previewing Workers. The post demonstrates how Webpack can resolve npm module imports, enabling the use of libraries like `path-to-regexp` for routing within Workers. It also highlights the benefit of using source maps for debugging.

Read the original post ↗