fix: db worker not working in build
This commit is contained in:
parent
fdf3c371d5
commit
448dde62f7
2 changed files with 6 additions and 4 deletions
4
src/db/db-worker.ts
Normal file
4
src/db/db-worker.ts
Normal 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();
|
Loading…
Add table
Add a link
Reference in a new issue