@bractjs/bractjs 0.1.12 → 0.1.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bractjs/bractjs",
3
- "version": "0.1.12",
3
+ "version": "0.1.13",
4
4
  "description": "Production-grade SSR framework for Bun + React 19. File-based routing, streaming SSR, server actions, typed routes.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/bractjs/bractjs#readme",
@@ -155,7 +155,10 @@ export function ClientRouter({ children, initialData, initialModule = null }: Cl
155
155
  // Update DevTools state (dev-only — no-op in prod since the import fails).
156
156
  const w = window as unknown as { __BRACT_DEV__?: boolean };
157
157
  if (w.__BRACT_DEV__ === true) {
158
- void import("../../dev/devtools.ts").then(({ updateDevtoolsState }) => {
158
+ // Use the dev-only HTTP endpoint (registered in serve.ts) rather than
159
+ // a relative source-path import — Bun preserves dynamic-import paths
160
+ // as runtime URLs, and a relative .ts path 404s in the browser.
161
+ void import(/* @vite-ignore */ "/_bractjs/devtools.js").then(({ updateDevtoolsState }) => {
159
162
  updateDevtoolsState({
160
163
  route: toPathname,
161
164
  loaderData: data,