diff options
author | stephan <stephan@noemail.net> | 2023-01-27 01:33:12 +0000 |
---|---|---|
committer | stephan <stephan@noemail.net> | 2023-01-27 01:33:12 +0000 |
commit | 0cd38cd2b9adb966e4ff02596526725311fadf64 (patch) | |
tree | 1712db9a14f4c675e55f68eee1428006a4226ffd /ext/wasm/api/sqlite3-vfs-opfs.c-pp.js | |
parent | 0945197a39896ec49ecfffd8f7b10ecc844020ac (diff) | |
download | sqlite-0cd38cd2b9adb966e4ff02596526725311fadf64.tar.gz sqlite-0cd38cd2b9adb966e4ff02596526725311fadf64.zip |
Beginnings of a bundler-friendly build of sqlite3.mjs. Not yet ready for downstream testing.
FossilOrigin-Name: 4271bf5f41df091696f1dcfc4ffe7a60d24066fc75c896941e0b56de95fe5f89
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); |