Skip to content

Commit

Permalink
Fix build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
SatishGandham committed Aug 7, 2024
1 parent 0e4f54f commit 4e85f00
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion web/core/local-db/sqlite.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// import sqlite3InitModule from "@sqlite.org/sqlite-wasm";
import { sqlite3Worker1Promiser } from "@sqlite.org/sqlite-wasm";
// import { sqlite3Worker1Promiser } from "@sqlite.org/sqlite-wasm";
import { createTables } from "./tables";

declare module "@sqlite.org/sqlite-wasm" {
Expand All @@ -22,6 +22,8 @@ const initializeSQLite = async () => {
console.info("Instance already initialized");
return;
}
const { sqlite3Worker1Promiser } = await import("@sqlite.org/sqlite-wasm");

try {
log("Loading and initializing SQLite3 module...");

Expand Down

0 comments on commit 4e85f00

Please sign in to comment.