1
0
mirror of https://github.com/lana-k/sqliteviz.git synced 2025-12-07 18:48:55 +08:00

migrate to vite

This commit is contained in:
lana-k
2025-02-01 20:54:26 +01:00
parent 8fa3c2ae58
commit 828cad6439
17 changed files with 92 additions and 52 deletions

View File

@@ -1,8 +1,11 @@
import initSqlJs from 'sql.js/dist/sql-wasm.js'
import dbUtils from './_statements'
import wasmUrl from 'sql.js/dist/sql-wasm.wasm?url'
let SQL = null
const sqlModuleReady = initSqlJs().then(sqlModule => { SQL = sqlModule })
const sqlModuleReady = initSqlJs({
locateFile: () => wasmUrl
}).then(sqlModule => { SQL = sqlModule })
function _getDataSourcesFromSqlResult (sqlResult) {
if (!sqlResult) {