1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-29 08:01:23 +03:00

Add build of sqlite3.mjs (ES6 module), add a test app for it, and include it in the dist build.

FossilOrigin-Name: 2e783670e10b59e67c14b0db7f4803b41790cc7730de221d54fa2d4483cfba33
This commit is contained in:
stephan
2022-11-19 05:26:45 +00:00
parent c768ef7289
commit 27a67968af
12 changed files with 213 additions and 124 deletions

View File

@ -29,7 +29,7 @@ sqlite3InitModuleState.debugModule('self.location =',self.location);
4) If none of the above apply, (prefix+path) is returned.
*/
Module['locateFile'] = function(path, prefix) {
//#if SQLITE_JS_ESM
//#if sqlite3-es6-module-build
return new URL(path, import.meta.url).href;
//#else
'use strict';