You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This makes an ES6 Module for SqlJs, not sure how it affects the other generated files. Based on Roy's comment sql-js#438 (comment)
import initSqlJs from 'URL TO /sql-wasm.mjs';
const SQL = await initSqlJs({
// Required to load the wasm binary asynchronously. Of course, you can host it wherever you want
// You can omit locateFile completely when running in node
locateFile: file => `URL TO /sql-wasm.wasm`
});
0 commit comments