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

Compare commits

..

1 commit

Author SHA1 Message Date
Manuel Schiller
c72ac659e4 fix(start-plugin-core): remove crawlFrameworkPkgs from optimizeDeps.exclude
This fixes issue #5738 where server-side modules (like the `cookie` module
from Clerk SDK) were incorrectly being bundled into the client.

The `crawlFrameworkPkgs` function finds packages that have `@tanstack/react-start`
or `@tanstack/start-client-core` as peer dependencies and was adding them to
`optimizeDeps.exclude`. This prevented Vite from pre-bundling these packages,
causing their server-side dependencies to leak into the client bundle as native
ESM imports, which failed at runtime with errors like:

  SyntaxError: The requested module 'cookie' does not provide an export named 'parse'

By removing this automatic exclusion, Vite will now properly pre-bundle
third-party packages and their dependencies, ensuring correct module resolution.

fixes #5738
2026-01-11 15:54:06 +01:00
8537 changed files with 135061 additions and 553524 deletions

15
.gitignore vendored

Some files were not shown because too many files have changed in this diff Show more