Cloudflare experiments with code-splitting for Workers, wants agents to benchmark and file issues

irvinebroque · x · 2026-12-06

Cloudflare engineer southpolesteve is testing how to bundle JS for Workers. Today each Worker ships as one giant file — simple, but any 1-line edit invalidates the whole bundle for module/bytecode caching and blocks the new module registry optimizations; not bundling at all builds fast but pays a startup CPU cost. He built an experimental Vite 8 (Rolldown) plugin, vite-plugin-cloudflare-chunks: point your agent at the repo and it benchmarks several chunking strategies against your real Worker and files results as a GitHub issue, feeding real-world data before defaults change in @cloudflare/vite-plugin and the cf CLI.

Original post →

More from coding & agent

coding & agent channel →