Fixed a "Cannot find module" bug in Cloudflare's vinext鈥攖he twist? The fix was already shipped. Vinext sets noExternal: true, so Vite routes all deps through its resolver, handling extensionless ESM imports Node 22 rejects.

My job: document it, prove it with a CI test, and not ship a speculative package allowlist.

Three review rounds. One ecosystem fixture. Zero config needed.

Full write-up 馃憞
https://medium.com/@cloudrelic/how-i-fixed-esm-resolution-in-cloudflares-vinext-f2e127ef57b9

#OpenSource #Vite #ESM #Cloudflare #JavaScript

How I Fixed ESM Resolution in Cloudflare鈥檚 vinext

Tags: Open Source 路 Vite 路 ESM 路 Cloudflare Author: Md Yunus 路 March 2026 路 8 min read 路 Merged in PR #193

Medium