From c76a8862a73fdf90ec5ab1aa088b8b600bba2365 Mon Sep 17 00:00:00 2001 From: stephan Date: Mon, 24 Jul 2023 15:41:58 +0000 Subject: Resolve an ES6 module export construct which is incompatible with node.js, as reported in [forum:b9680fa9ad|forum post b9680fa9ad]. FossilOrigin-Name: 80927c3913561dddf75cf73be871d93ae06b16f83e8cc36fc360765014209615 --- ext/wasm/api/extern-post-js.c-pp.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ext/wasm/api/extern-post-js.c-pp.js') 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 -- cgit v1.2.3