mirror of
https://github.com/TanStack/router.git
synced 2026-11-16 19:38:07 +00:00
fix(router-utils): an extracted cluster re-exports every binding its export lists export
An export list or `export default x` that reads only one extraction
candidate's cluster renders as the route module's re-export glue, but the
glue named only the bindings the planner offered that output (first one
wins per cluster) and the inline-exported declarators. `const { Page, Other }
= views; export { Page, Other }`, `export { Other }; export default Page`
and `let count; function bump() { count++ }; export { count, bump }` lost
`Other`, the default export and `count` (a build failed on the missing
export). A companion's bindings now join the candidate's. Main kept them in
the route module.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
b4d2482dcf
commit
f2d687e257
3 changed files with 122 additions and 1 deletions
Loading…
Add table
Add a link
Reference in a new issue