Patch Changes
-
#13933
90092c0Thanks @petebacondarwin! - Derive bundler externals frompackage.jsonand shrink the published bundleThe bundler's
externallist was previously hand-maintained and out of sync withpackage.json—undiciandsemverwere both listed as external despite being onlydevDependencies. The publisheddist/pool/index.mjsconsequently contained a top-levelimport { fetch } from "undici"that was only resolvable because pnpm happened to hoistundicifrom other packages' devDependencies during local development.The bundler now derives its
externallist fromdependencies+peerDependenciesinpackage.json, making it impossible for adevDependencyto silently end up externalized.Combined with the new
"sideEffects": falsedeclaration in@cloudflare/workers-utils, the unusedcloudflared/tunnelexports (and their transitiveundiciimport) are now tree-shaken out of the pool entirely.dist/pool/index.mjsno longer referencesundiciat all, and shrinks from ~489 KB to ~125 KB. -
Updated dependencies [
52e9082,0733688,fc1f7b9,30657e1,8c569c6,f598eac,3a1fbed]:- wrangler@4.94.0
- miniflare@4.20260521.0