← All stories
● Covered by 1 source · 1 reportMedium impact1 neutral

Cloudflare Workers' Module Registry Rewritten for Node.js Compatibility

🔄 Updated 2h ago
New to BrevFeed? We gather this story from every outlet covering it into one summary — ranked by real-world impact, not just the latest headline — so you never miss what matters. What is BrevFeed? →

Key points

  • workerd module registry rewritten for Node.js compatibility.
  • Supports ESM, CommonJS, and WebAssembly module types.
  • Enables deployment of larger Node.js apps (up to 64 MiB).
  • Activated via the "new_module_registry" compatibility flag.

Improved Node.js Compatibility

Cloudflare has updated the module registry within workerd, the open-source component powering the Workers runtime. This rewrite focuses on enhancing compatibility with Node.js, aligning more closely with its module registry behavior, and improving adherence to web standards.

Expanded Node.js API Support

The Workers runtime now supports all stable Node.js runtime APIs relevant to serverless contexts, with these APIs enabled by default. This change, alongside the removal of compressed bundle size limits, allows developers to deploy Node.js applications up to 64 MiB on Cloudflare Workers.

Module Resolution Enhancements

The new module registry addresses how the runtime resolves, loads, and caches different module types, including ESM, CommonJS, and WebAssembly. Specific improvements include correct functionality for import.meta.url, import.meta.main, and import.meta.resolve(), parsing module specifiers as real URLs, consistent resolution of node: built-ins, and proper validation of import attributes.

Activation and Benefits

Developers can activate the new module registry by enabling the "new_module_registry" compatibility flag in their Worker configuration. This update also introduces lazy compilation of modules upon first import and support for source phase imports in WebAssembly modules, contributing to a more robust and Node.js-like development experience on Cloudflare Workers.

✨ This summary was generated by AI from the outlets' reporting listed below. It is not independently verified and may contain errors — check the original sources. How BrevFeed works →

The daily brief

One email each morning: the day's tech stories, clustered across outlets and summarized. No account needed.

One email a day. Unsubscribe in one click, any time.

Today's brief

Spend a few minutes, get the whole day. Every topic's top stories in one hands-free rundown — listen, watch, or read the transcript.

~22 min · 18 stories · Sep 09

▶ Play today's brief Listen on Spotify

New every morning, and the back catalogue is archived by date.

Reporting from

Cloudflare has rewritten the module registry in workerd, the core component of its Workers runtime, to improve Node.js compatibility and standards adherence. This update allows for better resolution, loading, and caching of modules, enabling deployment of larger Node.js applications to Cloudflare Workers.