0
Fork 0
mirror of https://github.com/TanStack/router.git synced 2026-11-16 19:38:07 +00:00
router/examples
Manuel Schiller 3325eb7451 feat(route-modules): install route-module behavior with createRouteModuleRouter
Applications that mount route modules create their router with
`createRouteModuleRouter`, a named export of React, Solid and Vue Router
with the options and return type of `createRouter`. It is the one place
that installs the route-module behavior of the core and of the framework
links, before the router is created.

- The core keeps that behavior in one never-assigned `routeModules`
  binding, which bundlers fold away in applications without route
  modules.
- Module code (`mountRouteModule`, generated scopes, module roots and
  scoped binders) no longer installs anything, so no install side effect
  hides behind `/* @__PURE__ */` calls.
- Nothing reads the behavior at import: the template root of a module
  installed several times takes its `<pkg>:` id itself.
- In development, `createRouter` throws when its route tree contains a
  mounted module or when it receives options from generated module APIs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
History 2026-11-02 18:53:23 +01:00
..
react feat(route-modules): install route-module behavior with createRouteModuleRouter 2026-11-02 18:53:23 +01:00
solid ci: Version Packages (#8745) 2026-10-22 22:05:39 +02:00
vue ci: Version Packages (#8745) 2026-10-22 22:05:39 +02:00
AGENTS.md agents (#8258) 2026-09-15 22:36:13 +02:00