Cloudflare Workers makes new module registry the default
Published:
JavaScript Workers with a compatibility date on or after November 17, 2026 use the new module registry by default. Existing Workers retain their behavior until their date or flags change.
Cloudflare announced a change to JavaScript module loading in Workers on November 2. Workers with a compatibility date on or after November 17, 2026 use the new module registry by default, without the flag previously needed to enable it. Python Workers continue using the legacy registry. With Node.js compatibility enabled, require() can load ES modules provided neither the module nor its dependencies use top-level await. The new registry rejects invalid import attributes. Teams should therefore review dependencies before changing the compatibility date. The legacy_module_registry flag can retain the previous registry with newer compatibility dates.
Why it matters
Development teams updating compatibility dates need to check import attributes and require() behavior. An explicit flag remains available to retain the legacy registry.
Source retrieved: 2026-11-22
Event date: 2026-11-16