0
Fork 0
mirror of https://github.com/TanStack/router.git synced 2026-11-16 19:38:07 +00:00

test(start-plugin-core): client-only imports never reach the server

A browser-only package (it reads window when it loads) that only a
createClientOnlyFn body and an isomorphic .client() read, through a
diamond and a cycle of helpers, never loads on the server: in dev (the
SSR environment) and in Vite and Rsbuild builds, where the server build
must neither bundle it nor warn about its importer, and SSR runs. A new
S2 pin covers the server twin of the class rows: a class only a
client-only fn uses keeps its client-only import on the server today.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Sheraff 2026-10-25 12:23:12 +01:00
commit 9af54a337f
No known key found for this signature in database
4 changed files with 100 additions and 8 deletions