@bractjs/bractjs 0.1.17 → 0.1.18
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 +1 -1
- package/src/dev/server.ts +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bractjs/bractjs",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.18",
|
|
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",
|
package/src/dev/server.ts
CHANGED
|
@@ -20,7 +20,8 @@ console.log(`[bractjs] initial client build in ${initialMs}ms`);
|
|
|
20
20
|
// Load user lifecycle hooks if defined (e.g. app/lifecycle.ts)
|
|
21
21
|
let lifecycle: LifecycleHooks = {};
|
|
22
22
|
try {
|
|
23
|
-
const
|
|
23
|
+
const lifecyclePath = `${process.cwd()}/app/lifecycle.ts`;
|
|
24
|
+
const mod = await import(lifecyclePath);
|
|
24
25
|
if (mod.default) lifecycle = mod.default;
|
|
25
26
|
} catch {
|
|
26
27
|
// No lifecycle file — that's fine
|