aboutsummaryrefslogtreecommitdiff
path: root/ext/wasm/api/extern-post-js.js
diff options
context:
space:
mode:
authorstephan <stephan@noemail.net>2022-11-20 01:15:22 +0000
committerstephan <stephan@noemail.net>2022-11-20 01:15:22 +0000
commit0a94ef8b52fac73d7c200adc876eb38a88664b4e (patch)
tree5b7c94d2a95c07640c7f3b23cfff8007a396f94f /ext/wasm/api/extern-post-js.js
parentecba10730d032485d1067a819c7a3cc966db3d9e (diff)
downloadsqlite-0a94ef8b52fac73d7c200adc876eb38a88664b4e.tar.gz
sqlite-0a94ef8b52fac73d7c200adc876eb38a88664b4e.zip
Minor cleanups in the ESM-related preprocessor filtering.
FossilOrigin-Name: 205884a273128bb666b496b659b4fa9f031ebdbbc1aa704fdeb4b7e015740098
Diffstat (limited to 'ext/wasm/api/extern-post-js.js')
-rw-r--r--ext/wasm/api/extern-post-js.js8
1 files changed, 3 insertions, 5 deletions
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