mirror of
https://github.com/cloudflare/vinext.git
synced 2026-09-14 19:04:59 +08:00
dc6b11f2ce
* fix(rsc): exclude client shims from dep optimization App Router dev config currently excludes the vinext package but not its client shim subpaths. @vitejs/plugin-rsc tracks package client references by the original bare import source, so optimized vinext/shims/* modules can lose the matching export metadata and crash client-package proxy loading. Add a shared optimizeDeps exclude set for vinext's known RSC client shims and merge it into the top-level, RSC, SSR, and client optimizer configs while preserving existing user and server-external excludes. * Update rsc-client-shim-excludes.ts Co-authored-by: James Anderson <james@eli.cx> * Update rsc-client-shim-excludes.ts Co-authored-by: James Anderson <james@eli.cx> * Update build-optimization.test.ts Co-authored-by: James Anderson <james@eli.cx> --------- Co-authored-by: James Anderson <james@eli.cx>