diff options
author | stephan <stephan@noemail.net> | 2023-01-28 04:20:46 +0000 |
---|---|---|
committer | stephan <stephan@noemail.net> | 2023-01-28 04:20:46 +0000 |
commit | 65f7942d0678a56f788d54a636c9c30ed63b5ee6 (patch) | |
tree | d3d7ad55512c95b9ca137d605d7e0b760f8bf687 /ext/wasm/api/sqlite3-vfs-opfs.c-pp.js | |
parent | cfd01014d0b5657a8b48d4c828405703cce9e941 (diff) | |
parent | 69141f52be6368d3510b551c74029e3600b6f4c2 (diff) | |
download | sqlite-65f7942d0678a56f788d54a636c9c30ed63b5ee6.tar.gz sqlite-65f7942d0678a56f788d54a636c9c30ed63b5ee6.zip |
Add JS bundler-friendly JS build. Minor test code cleanups.
FossilOrigin-Name: 24d3a53dea5e596230558e233cbbd9d0288b4c394cd5ea7b650fd99bff4cde2e
Diffstat (limited to 'ext/wasm/api/sqlite3-vfs-opfs.c-pp.js')
-rw-r--r-- | ext/wasm/api/sqlite3-vfs-opfs.c-pp.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/wasm/api/sqlite3-vfs-opfs.c-pp.js b/ext/wasm/api/sqlite3-vfs-opfs.c-pp.js index 2ded905ad..451f0019c 100644 --- a/ext/wasm/api/sqlite3-vfs-opfs.c-pp.js +++ b/ext/wasm/api/sqlite3-vfs-opfs.c-pp.js @@ -198,7 +198,9 @@ const installOpfsVfs = function callee(options){ return promiseReject_(err); }; const W = -//#if target=es6-module +//#if target=es6-bundler-friendly + new Worker(new URL("sqlite3-opfs-async-proxy.js", import.meta.url)); +//#elif target=es6-module new Worker(new URL(options.proxyUri, import.meta.url)); //#else new Worker(options.proxyUri); |