fix: embed sqlite3.wasm in lib for production builds

This commit is contained in:
2024-03-04 15:25:15 +00:00
parent 99b4d01ff7
commit 098251fee3
8 changed files with 52 additions and 46 deletions

View File

@ -80,9 +80,9 @@ globalThis.onmessage = async ev => {
} else {
relay = new InMemoryRelay();
}
const [dbPath, wasmPath] = msg.args as Array<string>;
debugLog("StartInit", dbPath, wasmPath);
await relay.init(dbPath, wasmPath);
const [dbPath] = msg.args as Array<string>;
debugLog("StartInit", dbPath);
await relay.init(dbPath);
reply(msg.id, true);
});
break;