We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c87d286 commit 94046bbCopy full SHA for 94046bb
1 file changed
public/jsonic-bench/src/adapters/sqljs.js
@@ -21,8 +21,10 @@ export class SQLJSAdapter extends DatabaseAdapter {
21
22
async init() {
23
// Load real SQL.js WASM library from CDN
24
- const initSqlJs = await import('https://cdn.jsdelivr.net/npm/sql.js@1.10.3/dist/sql-wasm.js');
25
- const SQL = await initSqlJs.default({
+ const module = await import('https://cdn.jsdelivr.net/npm/sql.js@1.10.3/dist/sql-wasm.js');
+ // Handle both ESM default export and UMD format
26
+ const initSqlJs = module.default || module;
27
+ const SQL = await initSqlJs({
28
locateFile: file => `https://cdn.jsdelivr.net/npm/sql.js@1.10.3/dist/${file}`
29
});
30
0 commit comments