Skip to content
Source
Sign inSign up
TanStack/router

fix(router-plugin, router-utils): preserve route exports under code splitting and keep re-export aliases apart #8541

OpenhungateJoseph(GitHub profile, opens in a new tab)wants to merge 5 commits intomain fromrefs/pull/8541/headopened

Showing 103 changed files with 6 additions and 0 deletions (loading 102).

x
0 of 103 viewed, 103 left
6 additions and 0 deletions.changeset/shy-exports-remain.mdAdded
View file
@@ -0,0 +1,6 @@
+---
+'@tanstack/router-utils': patch
+'@tanstack/router-plugin': patch
+---
+​
+Keep route exports intact under automatic code splitting: exported classes and `export { name as alias }` specifiers are retained like other exported route options, and the overload signatures of a function moved into the shared module no longer stay behind to shadow its import. Re-exports of the same name from different sources, such as `export { wrap as allowed } from './server'` next to `export { wrap as denied } from './client'`, now resolve to their own sources in the Start compiler.
packages/router-plugin/src/core/code-splitter/compilers.tsModified
View file
Loading the diff
packages/router-plugin/tests/code-splitter/snapshots/react/1-default/retain-exports-alias-shared-group.tsxAdded
View file
Loading the diff