@eslym/sveltekit-adapter-bun 1.0.3 → 1.0.4
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/dist/index.js +3 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -93,6 +93,8 @@ async function startDevServer({
|
|
|
93
93
|
},
|
|
94
94
|
appType: "custom"
|
|
95
95
|
});
|
|
96
|
+
const hooks = await vite.ssrLoadModule("./src/hooks.server.ts").catch(() => ({}));
|
|
97
|
+
await hooks.beforeServe?.();
|
|
96
98
|
const server = Bun.serve({
|
|
97
99
|
hostname: host,
|
|
98
100
|
port,
|
|
@@ -159,6 +161,7 @@ async function startDevServer({
|
|
|
159
161
|
}
|
|
160
162
|
});
|
|
161
163
|
globalThis[symServer] = server;
|
|
164
|
+
await hooks.afterServe?.(server);
|
|
162
165
|
console.log(`Serving on ${server.url}`);
|
|
163
166
|
}
|
|
164
167
|
var getRequestPatch = `
|
package/package.json
CHANGED