Skip to content

Commit 25dec31

Browse files
committed
Manual patch of sqlite3-worker1-bundler-friendly.mjs
1 parent fa761df commit 25dec31

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

package-lock.json

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"http-server": "github:vapier/http-server",
6161
"module-workers-polyfill": "^0.3.2",
6262
"node-fetch": "^3.3.2",
63-
"prettier": "^3.4.2",
63+
"prettier": "^3.5.0",
6464
"prettier-plugin-jsdoc": "^1.3.2",
6565
"publint": "^0.3.4",
6666
"shx": "^0.3.4",

sqlite-wasm/jswasm/sqlite3-worker1-bundler-friendly.mjs

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@
3636
const urlParams = globalThis.location
3737
? new URL(globalThis.location.href).searchParams
3838
: new URLSearchParams();
39-
let theJs = 'sqlite3.js';
39+
let theJs = './sqlite3.js';
4040
if (urlParams.has('sqlite3.dir')) {
4141
theJs = urlParams.get('sqlite3.dir') + '/' + theJs;
4242
}
4343

44-
importScripts(theJs);
44+
await import(theJs);
4545
}
4646
sqlite3InitModule().then((sqlite3) => sqlite3.initWorker1API());

0 commit comments

Comments
 (0)