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

fix(start-plugin-core): no import-protection report for a dead re-export of Start builder chains

A dead re-export of a denied module whose top level is a server fn
(createServerFn().handler(fn)) failed the build: import protection's
effect check took every call of an imported factory for an effect, while
with protection off both bundlers drop the module. The recognizer now
lists each builder kind's link methods and the environment keeping each
method's argument (builderLinks); raw facts classify the module's own
statements per environment type with them: a chain from a factory call
(or a module-level const holding an open one) through those methods with
pure arguments is no effect, and the first argument of a method the
environment's compile erases (validators, handlers and server
implementations on the client, a client implementation on the server;
env-only fns' arguments) is not evaluated there, nor is what only such
arguments read (an import only a handler uses, a schema const only a
validator reads: the compile orphans them). Only target facts change:
the planners' purity and summaries do not take builder chains. Real
effects, unknown methods, links after .handler(), top-level await and
live imports stay reported.

The removed .inputValidator() (#8694) is no longer recognised; an old
call fails the client compile at the member.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Sheraff 2026-11-04 00:58:30 +01:00
commit fbf9a67e59
No known key found for this signature in database
13 changed files with 987 additions and 53 deletions