mirror of
https://github.com/TanStack/router.git
synced 2026-11-16 19:38:07 +00:00
test(start-plugin-core): require the server drop for neutral modules
Tests that left it open whether the server keeps neutral modules only client-only code reads now require the drop, checked by outcome: - `<ClientOnly>` children: the libraries only the children import throw when they load, so the server render fails if it loads them. - An aliased re-export of createClientOnlyFn: the SSR environment does not load the neutral `./browser` module. - The dead-code shape table runs the server-side removals over a neutral module instead of a `*.client.*` file. - The `<ClientOnly>` build adds a neutral module with a top-level effect: it is absent from the server bundle. All pass on main. Comments cite J4.11 instead of the removed §5.12. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
ae6dda9d8b
commit
da4cb9f35f
7 changed files with 34 additions and 26 deletions
Loading…
Add table
Add a link
Reference in a new issue