Using Webpack to bundle your Workers modules
Jun 25, 2018John Fawcett

Summary
This post introduces the use of Webpack as a module bundler for Cloudflare Workers. It demonstrates how to configure Webpack with TypeScript and `awesome-typescript-loader` to bundle multiple JavaScript/TypeScript files into a single file suitable for deployment as a Worker. It also shows how to integrate npm modules like `path-to-regexp` into the Worker code. The post provides a complete example of a weather worker that uses routing logic and external API calls, all bundled with Webpack.