fix: db worker not working in build

This commit is contained in:
Samuel 2025-01-22 16:11:24 +01:00
parent fdf3c371d5
commit 448dde62f7
2 changed files with 6 additions and 4 deletions

4
src/db/db-worker.ts Normal file
View file

@ -0,0 +1,4 @@
// we could use the worker file from ./lib/kysely-official-wasm-worker/worker/index.ts, but somehow that doesn't get bundled correctly
import { createOnMessageCallback } from "~/lib/kysely-official-wasm-worker";
self.onmessage = createOnMessageCallback();