Skip to content

Commit 1f90ee6

Browse files
committed
Use official patch
1 parent 6a4995d commit 1f90ee6

File tree

2 files changed

+4
-15
lines changed

2 files changed

+4
-15
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sqlite.org/sqlite-wasm",
3-
"version": "3.49.0-build2",
3+
"version": "3.49.0-build3",
44
"description": "SQLite Wasm conveniently wrapped as an ES Module.",
55
"keywords": [
66
"sqlite",

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

+3-14
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,6 @@
3131
- `sqlite3.dir`, if set, treats the given directory name as the
3232
directory from which `sqlite3.js` will be loaded.
3333
*/
34-
'use strict';
35-
(async () => {
36-
const urlParams = globalThis.location
37-
? new URL(globalThis.location.href).searchParams
38-
: new URLSearchParams();
39-
let theJs = './sqlite3.js';
40-
if (urlParams.has('sqlite3.dir')) {
41-
theJs = urlParams.get('sqlite3.dir') + '/' + theJs;
42-
}
43-
44-
await import(theJs);
45-
})().then(() =>
46-
sqlite3InitModule().then((sqlite3) => sqlite3.initWorker1API()),
47-
);
34+
35+
import {default as sqlite3InitModule} from './sqlite3-bundler-friendly.mjs';
36+
sqlite3InitModule().then(sqlite3 => sqlite3.initWorker1API());

0 commit comments

Comments
 (0)