fix: exclude virtual:emdash from optimizeDeps to fix npm installs on Cloudflare

This commit is contained in:
Matt Kane
2026-04-01 12:27:00 +01:00
parent 7a545979ee
commit b09bfd51ce
2 changed files with 13 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---
"emdash": patch
---
Fix virtual module resolution errors when emdash is installed from npm on Cloudflare. The esbuild dependency pre-bundler was encountering `virtual:emdash/*` imports while crawling dist files and failing to resolve them. These are now excluded from the optimizeDeps scan.