mirror of
https://github.com/TanStack/router.git
synced 2026-11-16 19:38:07 +00:00
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 |
History
|
|
|---|---|---|
| .. | ||
| arktype-adapter | ||
| eslint-plugin-router | ||
| history | ||
| nitro-v2-vite-plugin | ||
| react-router | ||
| react-router-devtools | ||
| react-router-ssr-query | ||
| react-start | ||
| react-start-client | ||
| react-start-server | ||
| router-cli | ||
| router-core | ||
| router-devtools | ||
| router-devtools-core | ||
| router-generator | ||
| router-plugin | ||
| router-ssr-query-core | ||
| router-utils | ||
| router-vite-plugin | ||
| solid-router | ||
| solid-router-devtools | ||
| solid-router-ssr-query | ||
| solid-start | ||
| solid-start-client | ||
| solid-start-server | ||
| start-client-core | ||
| start-fn-stubs | ||
| start-plugin-core | ||
| start-server-core | ||
| start-static-server-functions | ||
| start-storage-context | ||
| valibot-adapter | ||
| virtual-file-routes | ||
| vue-router | ||
| vue-router-devtools | ||
| vue-router-ssr-query | ||
| vue-start | ||
| vue-start-client | ||
| vue-start-server | ||
| zod-adapter | ||