From 0a94ef8b52fac73d7c200adc876eb38a88664b4e Mon Sep 17 00:00:00 2001 From: stephan Date: Sun, 20 Nov 2022 01:15:22 +0000 Subject: Minor cleanups in the ESM-related preprocessor filtering. FossilOrigin-Name: 205884a273128bb666b496b659b4fa9f031ebdbbc1aa704fdeb4b7e015740098 --- ext/wasm/api/extern-post-js.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'ext/wasm/api/extern-post-js.js') diff --git a/ext/wasm/api/extern-post-js.js b/ext/wasm/api/extern-post-js.js index 3dc61ae05..acf7068fe 100644 --- a/ext/wasm/api/extern-post-js.js +++ b/ext/wasm/api/extern-post-js.js @@ -8,7 +8,7 @@ most of the associated JS code, runs outside of the Emscripten-generated module init scope, in the current global scope. */ -//#if sqlite3-es6-module-build +//#if target=es6-module const toExportForES6 = //#endif (function(){ @@ -110,10 +110,8 @@ const toExportForES6 = exports["sqlite3InitModule"] = sqlite3InitModule; /* AMD modules get injected in a way we cannot override, so we can't handle those here. */ -//#if sqlite3-es6-module-build - return self.sqlite3InitModule; -//#endif + return self.sqlite3InitModule /* required for ESM */; })(); -//#if sqlite3-es6-module-build +//#if target=es6-module export default toExportForES6; //#endif -- cgit v1.2.3