Files
Nathan Nguyen dc6b11f2ce fix(rsc): exclude client shims from dep optimization (#1020)
* 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>
2026-05-02 18:50:19 +01:00
..
2026-03-15 10:50:13 +00:00
2026-04-09 09:14:13 +01:00
2026-04-09 09:14:13 +01:00