aboutsummaryrefslogtreecommitdiff
path: root/ext/wasm/api/extern-post-js.c-pp.js
diff options
context:
space:
mode:
authorstephan <stephan@noemail.net>2023-07-24 15:41:58 +0000
committerstephan <stephan@noemail.net>2023-07-24 15:41:58 +0000
commitc76a8862a73fdf90ec5ab1aa088b8b600bba2365 (patch)
tree42f728a07d5760b1bf6897c9be47fe7dcf6819ca /ext/wasm/api/extern-post-js.c-pp.js
parent479cfd5af3d46e70468eda8e31c4d033955bdd29 (diff)
downloadsqlite-c76a8862a73fdf90ec5ab1aa088b8b600bba2365.tar.gz
sqlite-c76a8862a73fdf90ec5ab1aa088b8b600bba2365.zip
Resolve an ES6 module export construct which is incompatible with node.js, as reported in [forum:b9680fa9ad|forum post b9680fa9ad].
FossilOrigin-Name: 80927c3913561dddf75cf73be871d93ae06b16f83e8cc36fc360765014209615
Diffstat (limited to 'ext/wasm/api/extern-post-js.c-pp.js')
-rw-r--r--ext/wasm/api/extern-post-js.c-pp.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/wasm/api/extern-post-js.c-pp.js b/ext/wasm/api/extern-post-js.c-pp.js
index fac00370d..00cb3fab9 100644
--- a/ext/wasm/api/extern-post-js.c-pp.js
+++ b/ext/wasm/api/extern-post-js.c-pp.js
@@ -119,5 +119,6 @@ const toExportForESM =
return globalThis.sqlite3InitModule /* required for ESM */;
})();
//#if target=es6-module
-export { toExportForESM as default, toExportForESM as sqlite3InitModule }
+sqlite3InitModule = toExportForESM;
+export default sqlite3InitModule;
//#endif