The new @stacksjs/bun-router/runtime entry exports only the serving surface, but it currently reaches Router through src/router/index.ts. That root barrel also imports fluent builders, validation integration, response macros, middleware-pipeline helpers, route caching, and subdomain routing exports that the runtime entry does not expose.
An exact Bun 1.4.2 single-entry build records 43 source inputs and 139,032 minified bytes. The unrelated root-only contributors include fluent-routing.ts, validation/validator.ts, response/macros.ts, route-caching.ts, subdomain-routing.ts, and middleware/pipeline.ts.
Acceptance criteria:
- factor the complete Router extension registration and module augmentation into one shared initializer,
- make both the root router barrel and runtime entry use that initializer,
- preserve every registered Router method and the existing runtime response behavior,
- keep root-only helper exports out of the runtime static graph with a regression test,
- measure the emitted graph and fresh-process import cost on exact Bun 1.4.2,
- include the result in the pending 0.1.19 release evidence without publishing until explicitly approved.